mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
netlink: Cleanup veth pair created during tests
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
This commit is contained in:
@@ -115,6 +115,7 @@ func TestCreateVethPair(t *testing.T) {
|
||||
if err := NetworkCreateVethPair(name1, name2); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer NetworkLinkDel(name1)
|
||||
|
||||
if _, err := net.InterfaceByName(name1); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user