Merge pull request #125794 from bzsuni/cleanup/PollImmediateWithContext

Use PollUntilContextTimeout to replace PollImmediateWithContext
This commit is contained in:
Kubernetes Prow Robot 2024-07-01 00:13:05 -07:00 committed by GitHub
commit 2e39a55d49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,10 +46,11 @@ func WaitForAllNodesSchedulable(ctx context.Context, c clientset.Interface, time
}
framework.Logf("Waiting up to %v for all (but %d) nodes to be schedulable", timeout, framework.TestContext.AllowedNotReadyNodes)
return wait.PollImmediateWithContext(
return wait.PollUntilContextTimeout(
ctx,
30*time.Second,
timeout,
true,
CheckReadyForTests(ctx, c, framework.TestContext.NonblockingTaints, framework.TestContext.AllowedNotReadyNodes, largeClusterThreshold),
)
}