Skip to content

Commit

Permalink
Merge pull request kubernetes#125794 from bzsuni/cleanup/PollImmediat…
Browse files Browse the repository at this point in the history
…eWithContext

Use PollUntilContextTimeout to replace PollImmediateWithContext
  • Loading branch information
k8s-ci-robot committed Jul 1, 2024
2 parents a326cfa + 1599658 commit 2e39a55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/framework/node/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
}
Expand Down

0 comments on commit 2e39a55

Please sign in to comment.