mirror of
https://github.com/rancher/plugins.git
synced 2025-07-08 12:45:19 +00:00
pkg/ns: fix test case to tolerate pids going away.
Signed-off-by: Casey Callendrello <cdc@redhat.com>
This commit is contained in:
parent
25704f9372
commit
3ae85c1093
@ -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))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user