fix unhandled error in TestGetNewSetDelete

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-01-13 16:25:53 +01:00 committed by Jeff Widman
parent 974e44d5c7
commit f2b79daebc
1 changed files with 3 additions and 1 deletions

View File

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