Skip to content

Commit 2e39a55

Browse files
authored
Merge pull request kubernetes#125794 from bzsuni/cleanup/PollImmediateWithContext
Use PollUntilContextTimeout to replace PollImmediateWithContext
2 parents a326cfa + 1599658 commit 2e39a55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/framework/node/helper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ func WaitForAllNodesSchedulable(ctx context.Context, c clientset.Interface, time
4646
}
4747

4848
framework.Logf("Waiting up to %v for all (but %d) nodes to be schedulable", timeout, framework.TestContext.AllowedNotReadyNodes)
49-
return wait.PollImmediateWithContext(
49+
return wait.PollUntilContextTimeout(
5050
ctx,
5151
30*time.Second,
5252
timeout,
53+
true,
5354
CheckReadyForTests(ctx, c, framework.TestContext.NonblockingTaints, framework.TestContext.AllowedNotReadyNodes, largeClusterThreshold),
5455
)
5556
}

0 commit comments

Comments
 (0)