Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Mar 22, 2023
1 parent 205110e commit f5a433d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/kube-ovn/subnet/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func checkIptablesRulesOnNode(f *framework.Framework, node, table, chain, subnet
output := e2epodoutput.RunHostCmdOrDie(ovsPod.Namespace, ovsPod.Name, cmd)
rules := strings.Split(output, "\n")
for _, r := range expectedRules {
ok, err := gomega.ContainElement(r).Match(rules)
ok, err := gomega.ContainElement(gomega.HavePrefix(r)).Match(rules)
if err != nil || ok != shouldExist {
return false, err
}
Expand Down

0 comments on commit f5a433d

Please sign in to comment.