mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #130818 from macsko/fix_flaky_nonimatednodename_integration_test
Wait for node to appear in cache in TestUpdateNominatedNodeName integration test
This commit is contained in:
commit
22ff6b4918
@ -226,6 +226,11 @@ func TestUpdateNominatedNodeName(t *testing.T) {
|
||||
t.Fatalf("Creating node error: %v", err)
|
||||
}
|
||||
|
||||
// Ensure node is present in scheduler cache.
|
||||
if err := testutils.WaitForNodesInCache(testCtx.Ctx, testCtx.Scheduler, 1); err != nil {
|
||||
t.Fatalf("Waiting for node in cache error: %v", err)
|
||||
}
|
||||
|
||||
// Create initial low-priority pod and wait until it's scheduled.
|
||||
pod, err := testutils.CreatePausePod(testCtx.ClientSet, podLow)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user