Merge pull request #99564 from aojea/tcpproxy_ntry

fix e2e test kube-proxy tcp_wait
This commit is contained in:
Kubernetes Prow Robot
2021-02-28 16:58:39 -08:00
committed by GitHub

View File

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