Skip to content

Commit 8cc18be

Browse files
Use CreateAndWait in MP ScaleFromZero test
Signed-off-by: killianmuldoon <[email protected]>
1 parent 632fda1 commit 8cc18be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

exp/internal/controllers/machinepool_controller_phases_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ func TestReconcileMachinePoolScaleToFromZero(t *testing.T) {
12151215
},
12161216
},
12171217
}
1218-
g.Expect(env.Create(ctx, node)).To(BeNil())
1218+
g.Expect(env.CreateAndWait(ctx, node)).To(BeNil())
12191219
defer func(do ...client.Object) {
12201220
g.Expect(env.Cleanup(ctx, do...)).To(Succeed())
12211221
}(node)
@@ -1249,7 +1249,6 @@ func TestReconcileMachinePoolScaleToFromZero(t *testing.T) {
12491249
g.Expect(res.Requeue).To(BeFalse())
12501250

12511251
r.reconcilePhase(machinepool)
1252-
12531252
g.Expect(machinepool.Status.GetTypedPhase()).To(Equal(expv1.MachinePoolPhaseRunning))
12541253

12551254
delNode := &corev1.Node{}

0 commit comments

Comments
 (0)