From 7b0b47c132464d385c74e91868b7fe888bfd6efd Mon Sep 17 00:00:00 2001 From: Mauricio Poppe Date: Tue, 30 Mar 2021 18:37:58 +0000 Subject: [PATCH] remove sleep 1 and check later if the test is flaky --- test/e2e/framework/kubectl/kubectl_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/kubectl/kubectl_utils.go b/test/e2e/framework/kubectl/kubectl_utils.go index 264505f6344..f435453a0c8 100644 --- a/test/e2e/framework/kubectl/kubectl_utils.go +++ b/test/e2e/framework/kubectl/kubectl_utils.go @@ -144,7 +144,7 @@ func (tk *TestKubeconfig) WriteFileViaContainer(podName, containerName string, p command := fmt.Sprintf("echo '%s' > '%s'; sync", contents, path) // TODO: replace with `framework.NodeOSDistroIs` when #81245 is complete if e2epod.NodeOSDistroIs("windows") { - command = fmt.Sprintf("echo '%s' > '%s'; sleep 1", contents, path) + command = fmt.Sprintf("echo '%s' > '%s';", contents, path) } stdout, stderr, err := tk.kubectlExecWithRetry(tk.Namespace, podName, containerName, "--", "/bin/sh", "-c", command) if err != nil {