Merge pull request #349 from cf-container-networking/fix-ip-test
pkg/ip unit test: be agnostic of Linux version
This commit is contained in:
@ -189,9 +189,8 @@ var _ = Describe("Link", func() {
|
|||||||
It("returns useful error", func() {
|
It("returns useful error", func() {
|
||||||
_ = containerNetNS.Do(func(ns.NetNS) error {
|
_ = containerNetNS.Do(func(ns.NetNS) error {
|
||||||
defer GinkgoRecover()
|
defer GinkgoRecover()
|
||||||
|
|
||||||
_, _, err := ip.SetupVeth(containerVethName, mtu, hostNetNS)
|
_, _, err := ip.SetupVeth(containerVethName, mtu, hostNetNS)
|
||||||
Expect(err.Error()).To(Equal("failed to move veth to host netns: file exists"))
|
Expect(err.Error()).To(HavePrefix("failed to move veth to host netns: "))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user