mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Wait for node to appear in cache in TestUpdateNominatedNodeName integration test
This commit is contained in:
parent
611abd3bcd
commit
f6a35c55f2
@ -226,6 +226,11 @@ func TestUpdateNominatedNodeName(t *testing.T) {
|
|||||||
t.Fatalf("Creating node error: %v", err)
|
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.
|
// Create initial low-priority pod and wait until it's scheduled.
|
||||||
pod, err := testutils.CreatePausePod(testCtx.ClientSet, podLow)
|
pod, err := testutils.CreatePausePod(testCtx.ClientSet, podLow)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user