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:
Ed Bartosh 2025-02-14 13:07:08 +02:00
parent 2642d8222d
commit f6090185a8

View File

@ -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).