From bfa16c559f1693b9789d0b38e98941f1e74676e3 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 14 Jul 2018 16:42:09 +0200 Subject: [PATCH] dnsmasq: gracefully handle temporarily not existing ready files --- internal/testing/dnsmasq/dnsmasq.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/testing/dnsmasq/dnsmasq.go b/internal/testing/dnsmasq/dnsmasq.go index f187168..f3217c1 100644 --- a/internal/testing/dnsmasq/dnsmasq.go +++ b/internal/testing/dnsmasq/dnsmasq.go @@ -125,7 +125,7 @@ func Run(t *testing.T, iface, ns string) *Process { // listening for requests. for { b, err := ioutil.ReadFile(ready.Name()) - if err != nil { + if err != nil && !os.IsNotExist(err) { t.Fatal(err) } if strings.TrimSpace(string(b)) == strconv.Itoa(p.dnsmasq.Process.Pid) {