mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 17:57:33 +00:00
fix e2e test kube-proxy tcp_wait
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user