integration/radvd: panic in goroutine instead of fatal
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
dd7c3a8a5f
commit
f87891a74b
@ -15,6 +15,7 @@
|
|||||||
package integration_test
|
package integration_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
@ -80,7 +81,7 @@ func TestRouterAdvertisement(t *testing.T) {
|
|||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
if err := srv.Serve("veth2a", conn); err != nil {
|
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)
|
//time.Sleep(5 * time.Second)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user