skips for root priveleges

This commit is contained in:
Vishvananda Ishaya 2014-10-31 12:21:39 -07:00
parent a383c76b6d
commit dfb90f83f1
2 changed files with 6 additions and 0 deletions

View File

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

View File

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