Skip to content

Commit d96803d

Browse files
author
mmirecki
committed
Fix Tests: Update portmap test's iptables error check
Signed-off-by: mmirecki <[email protected]>
1 parent 5d37272 commit d96803d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/meta/portmap/portmap_integ_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ var _ = Describe("portmap integration tests", func() {
207207

208208
// Verify iptables rules are gone
209209
_, err = ipt.List("nat", dnatChainName)
210-
Expect(err).To(MatchError(ContainSubstring("iptables: No chain/target/match by that name.")))
210+
Expect(err).To(HaveOccurred())
211211

212212
// Check that everything succeeded *after* we clean up the network
213213
if !contOK {

0 commit comments

Comments
 (0)