mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 04:54:54 +00:00
Merge pull request #136486 from dims/fix-imagepulltest-timeout
Add timeout to ImagePullTest poll loop to prevent infinite hangs
This commit is contained in:
@@ -376,7 +376,7 @@ func ImagePullTest(ctx context.Context, f *framework.Framework, image string, im
|
||||
|
||||
ginkgo.By("check the container status")
|
||||
var latestErr error
|
||||
err := wait.PollUntilContextCancel(ctx, ContainerStatusPollInterval, true, func(ctx context.Context) (bool, error) {
|
||||
err := wait.PollUntilContextTimeout(ctx, ContainerStatusPollInterval, ContainerStatusRetryTimeout, true, func(ctx context.Context) (bool, error) {
|
||||
if latestErr = checkContainerStatus(ctx); latestErr != nil {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user