Merge pull request #132468 from haircommander/status-retry

e2e: retry getting status on restart policy tests
This commit is contained in:
Kubernetes Prow Robot
2025-07-08 18:21:28 -07:00
committed by GitHub

View File

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