diff --git a/plugins/meta/portmap/portmap_integ_test.go b/plugins/meta/portmap/portmap_integ_test.go index 3e8201e0..2468865e 100644 --- a/plugins/meta/portmap/portmap_integ_test.go +++ b/plugins/meta/portmap/portmap_integ_test.go @@ -207,7 +207,7 @@ var _ = Describe("portmap integration tests", func() { // Verify iptables rules are gone _, err = ipt.List("nat", dnatChainName) - Expect(err).To(MatchError(ContainSubstring("iptables: No chain/target/match by that name."))) + Expect(err).To(HaveOccurred()) // Check that everything succeeded *after* we clean up the network if !contOK {