Skip to content

Commit 2527854

Browse files
authored
Merge pull request kubernetes#130178 from bart0sh/PR172-e2e-fix-websockets-conformance
e2e: fix node conformance flake
2 parents e279ae4 + f609018 commit 2527854

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/e2e/common/node/pods.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,11 @@ var _ = SIGDescribe("Pods", func() {
638638
})
639639

640640
ginkgo.By("submitting the pod to kubernetes")
641-
podClient.CreateSync(ctx, pod)
641+
pod = podClient.CreateSync(ctx, pod)
642+
643+
ginkgo.By("waiting for the container to be running")
644+
err = e2epod.WaitForContainerRunning(ctx, f.ClientSet, pod.Namespace, pod.Name, pod.Spec.Containers[0].Name, framework.PodStartShortTimeout)
645+
framework.ExpectNoError(err, "failed to wait for container to be running")
642646

643647
req := f.ClientSet.CoreV1().RESTClient().Get().
644648
Namespace(f.Namespace.Name).

0 commit comments

Comments
 (0)