Skip to content

Commit

Permalink
Merge pull request containernetworking#349 from cf-container-networki…
Browse files Browse the repository at this point in the history
…ng/fix-ip-test

pkg/ip unit test: be agnostic of Linux version
  • Loading branch information
dcbw committed Jul 10, 2019
2 parents 0eddc55 + f3b1ffc commit 7d76537
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ip/link_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,8 @@ var _ = Describe("Link", func() {
It("returns useful error", func() {
_ = containerNetNS.Do(func(ns.NetNS) error {
defer GinkgoRecover()

_, _, 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
})
Expand Down

0 comments on commit 7d76537

Please sign in to comment.