mirror of
https://github.com/vishvananda/netns
synced 2024-12-21 22:49:58 +00:00
fix unhandled error in TestGetNewSetDelete
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
974e44d5c7
commit
f2b79daebc
@ -24,7 +24,9 @@ func TestGetNewSetDelete(t *testing.T) {
|
||||
if err := Set(origns); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
newns.Close()
|
||||
if err := newns.Close(); err != nil {
|
||||
t.Error("Failed to close ns", err)
|
||||
}
|
||||
if newns.IsOpen() {
|
||||
t.Fatal("newns still open after close", newns)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user