Skip to content

Commit

Permalink
Fix Tests: Update portmap test's iptables error check
Browse files Browse the repository at this point in the history
Signed-off-by: mmirecki <[email protected]>
  • Loading branch information
mmirecki committed Dec 7, 2022
1 parent 5d37272 commit d96803d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/meta/portmap/portmap_integ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d96803d

Please sign in to comment.