mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
remove sleep 1 and check later if the test is flaky
This commit is contained in:
parent
2ac6d4d133
commit
7b0b47c132
@ -144,7 +144,7 @@ func (tk *TestKubeconfig) WriteFileViaContainer(podName, containerName string, p
|
|||||||
command := fmt.Sprintf("echo '%s' > '%s'; sync", contents, path)
|
command := fmt.Sprintf("echo '%s' > '%s'; sync", contents, path)
|
||||||
// TODO: replace with `framework.NodeOSDistroIs` when #81245 is complete
|
// TODO: replace with `framework.NodeOSDistroIs` when #81245 is complete
|
||||||
if e2epod.NodeOSDistroIs("windows") {
|
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)
|
stdout, stderr, err := tk.kubectlExecWithRetry(tk.Namespace, podName, containerName, "--", "/bin/sh", "-c", command)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user