fix e2e test kube-proxy tcp_wait

This commit is contained in:
Antonio Ojea
2021-03-01 00:54:57 +01:00
parent 4880b996b5
commit 1b61f49995

View File

@@ -213,7 +213,7 @@ var _ = common.SIGDescribe("KubeProxy", func() {
cmd := fmt.Sprintf("conntrack -L -f %s -d %v "+
"| grep -m 1 'CLOSE_WAIT.*dport=%v' ",
ipFamily, ip, testDaemonTCPPort)
if err := wait.PollImmediate(2*time.Second, epsilonSeconds, func() (bool, error) {
if err := wait.PollImmediate(2*time.Second, epsilonSeconds*time.Second, func() (bool, error) {
result, err := framework.RunHostCmd(fr.Namespace.Name, "e2e-net-exec", cmd)
// retry if we can't obtain the conntrack entry
if err != nil {