diff --git a/libnetwork/libnetwork_linux_test.go b/libnetwork/libnetwork_linux_test.go index de1e48a3cc..5be3ef2b53 100644 --- a/libnetwork/libnetwork_linux_test.go +++ b/libnetwork/libnetwork_linux_test.go @@ -1046,7 +1046,9 @@ func runParallelTests(t *testing.T, thrNumber int) { <-thrdone } - testns.Close() + if testns != origins { + testns.Close() + } if err := net2.Delete(); err != nil { t.Fatal(err) }