mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-01-28 02:19:27 +00:00
Merge pull request #132468 from haircommander/status-retry
e2e: retry getting status on restart policy tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user