From dd7c3a8a5ff0c383690abadf157b562a660f0ae7 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Sat, 9 May 2020 16:55:46 -0400 Subject: [PATCH] internal/testing/dnsmasq: panic in goroutine instead of fatal Signed-off-by: Matt Layher --- 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 f3217c1..ba696ba 100644 --- a/internal/testing/dnsmasq/dnsmasq.go +++ b/internal/testing/dnsmasq/dnsmasq.go @@ -116,7 +116,7 @@ func Run(t *testing.T, iface, ns string) *Process { case <-p.done: return // test done, any errors are from our Kill() default: - t.Fatalf("dnsmasq exited prematurely: %v", err) + panic(fmt.Sprintf("dnsmasq exited prematurely: %v", err)) } }()