Merge pull request #793 from EmilyShepherd/fix-ci

Fix Tests: Update portmap test's iptables error check
This commit is contained in:
Dan Williams 2022-12-12 10:48:32 -06:00 committed by GitHub
commit ec76e3c35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ var _ = Describe("portmap integration tests", func() {
// Verify iptables rules are gone // Verify iptables rules are gone
_, err = ipt.List("nat", dnatChainName) _, 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 // Check that everything succeeded *after* we clean up the network
if !contOK { if !contOK {