diff --git a/test/e2e/windows/host_process.go b/test/e2e/windows/host_process.go index 4af3c2c79c2..98a3c6c45c0 100644 --- a/test/e2e/windows/host_process.go +++ b/test/e2e/windows/host_process.go @@ -657,7 +657,8 @@ var _ = sigDescribe(feature.WindowsHostProcessContainers, "[MinimumKubeletVersio ginkgo.By("Waiting for the pod to start running") timeout := 3 * time.Minute - e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, timeout) + err = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, timeout) + framework.ExpectNoError(err) ginkgo.By("Getting container stats for pod") statsChecked := false @@ -711,7 +712,8 @@ var _ = sigDescribe(feature.WindowsHostProcessContainers, "[MinimumKubeletVersio pc.Create(ctx, pod) ginkgo.By("Waiting for pod to run") - e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 3*time.Minute) + err := e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, 3*time.Minute) + framework.ExpectNoError(err) ginkgo.By("Waiting for 60 seconds") // We wait an additional 60 seconds after the pod is Running because the diff --git a/test/e2e/windows/hyperv.go b/test/e2e/windows/hyperv.go index 1b304936f35..3744d6e48fa 100644 --- a/test/e2e/windows/hyperv.go +++ b/test/e2e/windows/hyperv.go @@ -95,7 +95,8 @@ var _ = sigDescribe(feature.WindowsHyperVContainers, "HyperV containers", skipUn pc.Create(ctx, hypervPod) ginkgo.By("waiting for the pod to be running") timeout := 3 * time.Minute - e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, timeout) + err = e2epod.WaitForPodsRunningReady(ctx, f.ClientSet, f.Namespace.Name, 1, timeout) + framework.ExpectNoError(err) ginkgo.By("creating a host process container in another pod to verify the pod is running hyperv isolated containers")