diff --git a/link_test.go b/link_test.go index 2469688..65b7b2b 100644 --- a/link_test.go +++ b/link_test.go @@ -363,6 +363,9 @@ func TestLinkAddDelVxlan(t *testing.T) { } func TestLinkByIndex(t *testing.T) { + tearDown := setUpNetlinkTest(t) + defer tearDown() + dummy := &Dummy{LinkAttrs{Name: "dummy"}} if err := LinkAdd(dummy); err != nil { t.Fatal(err) diff --git a/neigh_test.go b/neigh_test.go index caf38ed..3b84162 100644 --- a/neigh_test.go +++ b/neigh_test.go @@ -28,6 +28,9 @@ func dumpContains(dump []Neigh, e arpEntry) bool { } func TestNeighAddDel(t *testing.T) { + tearDown := setUpNetlinkTest(t) + defer tearDown() + dummy := Dummy{LinkAttrs{Name: "neigh0"}} if err := LinkAdd(&dummy); err != nil { t.Fatal(err)