pkg/ns: fix test case to tolerate pids going away.
Signed-off-by: Casey Callendrello <cdc@redhat.com>
This commit is contained in:
@ -200,7 +200,9 @@ var _ = Describe("Linux namespace operations", func() {
|
|||||||
By("comparing against the netns inode of every thread in the process")
|
By("comparing against the netns inode of every thread in the process")
|
||||||
for _, netnsPath := range allNetNSInCurrentProcess() {
|
for _, netnsPath := range allNetNSInCurrentProcess() {
|
||||||
netnsInode, err := getInode(netnsPath)
|
netnsInode, err := getInode(netnsPath)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
if !os.IsNotExist(err) {
|
||||||
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
}
|
||||||
Expect(netnsInode).NotTo(Equal(createdNetNSInode))
|
Expect(netnsInode).NotTo(Equal(createdNetNSInode))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user