From f87891a74b2bee14ba262ca55f55792470a655a2 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Sat, 9 May 2020 16:56:51 -0400 Subject: [PATCH] integration/radvd: panic in goroutine instead of fatal Signed-off-by: Matt Layher --- integration/radvd/radvd_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration/radvd/radvd_test.go b/integration/radvd/radvd_test.go index bf23f5d..82c2e46 100644 --- a/integration/radvd/radvd_test.go +++ b/integration/radvd/radvd_test.go @@ -15,6 +15,7 @@ package integration_test import ( + "fmt" "io/ioutil" "net" "os" @@ -80,7 +81,7 @@ func TestRouterAdvertisement(t *testing.T) { } go func() { if err := srv.Serve("veth2a", conn); err != nil { - t.Fatal(err) + panic(fmt.Sprintf("failed to serve router advertisements: %v", err)) } }() //time.Sleep(5 * time.Second)