internal/testing/dnsmasq: panic in goroutine instead of fatal

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-05-09 16:55:46 -04:00
parent 8efea22943
commit dd7c3a8a5f
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94

View File

@ -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))
}
}()