diff --git a/test/e2e/kubectl/kubectl.go b/test/e2e/kubectl/kubectl.go index 31a216f0980..ed8aa2ac4d5 100644 --- a/test/e2e/kubectl/kubectl.go +++ b/test/e2e/kubectl/kubectl.go @@ -594,7 +594,7 @@ var _ = SIGDescribe("Kubectl client", func() { ginkgo.By("executing a command with run") framework.RunKubectlOrDie("run", podName, "--generator=run-pod/v1", "--image="+busyboxImage, "--restart=OnFailure", nsFlag, "--", "sh", "-c", "sleep 10; seq 100 | while read i; do echo $i; sleep 0.01; done; echo EOF") - if !e2epod.CheckPodsRunningReady(c, ns, []string{podName}, framework.PodStartTimeout) { + if !e2epod.CheckPodsRunningReadyOrSucceeded(c, ns, []string{podName}, framework.PodStartTimeout) { e2elog.Failf("Pod for run-log-test was not ready") }