From f5a433d46528d9e694dd60ebb0cdf882cfb32ac4 Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Wed, 22 Mar 2023 18:23:45 +0800 Subject: [PATCH] fix e2e --- test/e2e/kube-ovn/subnet/subnet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/kube-ovn/subnet/subnet.go b/test/e2e/kube-ovn/subnet/subnet.go index a10cce219c7d..a3afe4dc396e 100644 --- a/test/e2e/kube-ovn/subnet/subnet.go +++ b/test/e2e/kube-ovn/subnet/subnet.go @@ -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 }