Skip to content

Commit 3298dfa

Browse files
committed
up sleep time in racy test
1 parent 7766e65 commit 3298dfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/kubectl/kubectl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,9 @@ var _ = SIGDescribe("Kubectl client", func() {
564564
// There is a race on this scenario described in #73099
565565
// It fails if we are not able to attach before the container prints
566566
// "stdin closed", but hasn't exited yet.
567-
// We wait 5 seconds before printing to give time to kubectl to attach
567+
// We wait 10 seconds before printing to give time to kubectl to attach
568568
// to the container, this does not solve the race though.
569-
runOutput = framework.NewKubectlCommand(ns, fmt.Sprintf("--namespace=%v", ns), "run", "run-test-2", "--image="+busyboxImage, "--restart=OnFailure", "--attach=true", "--leave-stdin-open=true", "--", "sh", "-c", "sleep 5; cat && echo 'stdin closed'").
569+
runOutput = framework.NewKubectlCommand(ns, fmt.Sprintf("--namespace=%v", ns), "run", "run-test-2", "--image="+busyboxImage, "--restart=OnFailure", "--attach=true", "--leave-stdin-open=true", "--", "sh", "-c", "sleep 10; cat && echo 'stdin closed'").
570570
WithStdinData("abcd1234").
571571
ExecOrDie(ns)
572572
gomega.Expect(runOutput).ToNot(gomega.ContainSubstring("abcd1234"))

0 commit comments

Comments
 (0)