mirror of https://github.com/vishvananda/netlink
skips for root priveleges
This commit is contained in:
parent
a383c76b6d
commit
dfb90f83f1
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue