mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
e2e: fix node conformance flake
The test `Pods should support retriving logs from the container over websockets` flakes as it doesn't always wait until container is running and is able to produce expected output. Waiting for pod to be in the `Running` state is not enough as it doesn't mean that container is running. Waiting for container to be in `Running` state should fix the test.
This commit is contained in:
parent
2642d8222d
commit
f6090185a8
@ -638,7 +638,11 @@ var _ = SIGDescribe("Pods", func() {
|
||||
})
|
||||
|
||||
ginkgo.By("submitting the pod to kubernetes")
|
||||
podClient.CreateSync(ctx, pod)
|
||||
pod = podClient.CreateSync(ctx, pod)
|
||||
|
||||
ginkgo.By("waiting for the container to be running")
|
||||
err = e2epod.WaitForContainerRunning(ctx, f.ClientSet, pod.Namespace, pod.Name, pod.Spec.Containers[0].Name, framework.PodStartShortTimeout)
|
||||
framework.ExpectNoError(err, "failed to wait for container to be running")
|
||||
|
||||
req := f.ClientSet.CoreV1().RESTClient().Get().
|
||||
Namespace(f.Namespace.Name).
|
||||
|
Loading…
Reference in New Issue
Block a user