From 77bb0c75e21fe0dbad8d31c7b5dd8cc1d81c3fb6 Mon Sep 17 00:00:00 2001 From: bobz965 Date: Thu, 20 Jul 2023 13:38:28 +0800 Subject: [PATCH] Update test/e2e/kube-ovn/switch_lb_rule/switch_lb_rule.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 张祖建 --- test/e2e/kube-ovn/switch_lb_rule/switch_lb_rule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/kube-ovn/switch_lb_rule/switch_lb_rule.go b/test/e2e/kube-ovn/switch_lb_rule/switch_lb_rule.go index c168e6e636a5..bb8ee7f14d96 100644 --- a/test/e2e/kube-ovn/switch_lb_rule/switch_lb_rule.go +++ b/test/e2e/kube-ovn/switch_lb_rule/switch_lb_rule.go @@ -366,7 +366,7 @@ var _ = framework.Describe("[group:slr]", func() { } for _, port := range epPorts { framework.ExpectContainElement(tps, port.TargetPort) - framework.ExpectEqual(protocols[port.TargetPort], port.Protocol) + framework.ExpectHaveKeyWithValue(protocols, port.TargetPort, port.Protocol) } } ginkgo.By("Checking endpoint switch lb service " + epSvc.Name)