diff --git a/test/e2e/common/node/runtime.go b/test/e2e/common/node/runtime.go index fedf1241c28..f72f66e47f2 100644 --- a/test/e2e/common/node/runtime.go +++ b/test/e2e/common/node/runtime.go @@ -117,9 +117,9 @@ while true; do sleep 1; done gomega.Eventually(ctx, terminateContainer.GetPhase, ContainerStatusRetryTimeout, ContainerStatusPollInterval).Should(gomega.Equal(testCase.Phase)) ginkgo.By(fmt.Sprintf("Container '%s': should get the expected 'Ready' condition", testContainer.Name)) - isReady, err := terminateContainer.IsReady(ctx) - gomega.Expect(isReady).To(gomega.Equal(testCase.Ready)) - framework.ExpectNoError(err) + gomega.Eventually(ctx, func() (bool, error) { + return terminateContainer.IsReady(ctx) + }, ContainerStatusRetryTimeout, ContainerStatusPollInterval).Should(gomega.Equal(testCase.Ready)) status, err := terminateContainer.GetStatus(ctx) framework.ExpectNoError(err)