mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #80393 from smarterclayton/pod_failure
Pod e2e for reading last line can flake if pod runs to completion
This commit is contained in:
commit
16b65b259d
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user