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 <mmirecki@redhat.com>
  • Loading branch information
mmirecki committed Dec 7, 2022
1 parent adf3d43 commit dc3cdab
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 dc3cdab

Please sign in to comment.