diff --git a/netlink/netlink_linux_test.go b/netlink/netlink_linux_test.go index 7e4fa33e..d387bf77 100644 --- a/netlink/netlink_linux_test.go +++ b/netlink/netlink_linux_test.go @@ -39,7 +39,7 @@ func TestCreateBridgeLink(t *testing.T) { name := "mybrlink" if err := NetworkLinkAdd(name, "bridge"); err != nil { - log.Fatal(err) + t.Fatal(err) } if _, err := net.InterfaceByName(name); err != nil {