diff --git a/pkg/ns/ns_linux_test.go b/pkg/ns/ns_linux_test.go index 3559410c..ac20c483 100644 --- a/pkg/ns/ns_linux_test.go +++ b/pkg/ns/ns_linux_test.go @@ -200,7 +200,9 @@ var _ = Describe("Linux namespace operations", func() { By("comparing against the netns inode of every thread in the process") for _, netnsPath := range allNetNSInCurrentProcess() { netnsInode, err := getInode(netnsPath) - Expect(err).NotTo(HaveOccurred()) + if !os.IsNotExist(err) { + Expect(err).NotTo(HaveOccurred()) + } Expect(netnsInode).NotTo(Equal(createdNetNSInode)) } })