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:
Dan Williams
2019-07-10 10:04:32 -05:00
committed by GitHub

View File

@ -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
}) })