Skip to content

Commit a2d3103

Browse files
committed
fix
1 parent 5c885d9 commit a2d3103

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/framework/machinepool_helpers.go

+1
Original file line numberDiff line numberDiff line change
@@ -365,5 +365,6 @@ func AssertMachinePoolReplicas(ctx context.Context, input AssertMachinePoolRepli
365365
g.Expect(input.Getter.Get(ctx, key, mp)).To(Succeed(), fmt.Sprintf("failed to get MachinePool %s", klog.KObj(input.MachinePool)))
366366
g.Expect(mp.Spec.Replicas).Should(Not(BeNil()), fmt.Sprintf("MachinePool %s replicas should not be nil", klog.KObj(mp)))
367367
g.Expect(*mp.Spec.Replicas).Should(Equal(input.Replicas), fmt.Sprintf("MachinePool %s replicas should match expected replicas", klog.KObj(mp)))
368+
g.Expect(mp.Status.Replicas).Should(Equal(input.Replicas), fmt.Sprintf("MachinePool %s replicas should match expected replicas", klog.KObj(mp)))
368369
}, input.WaitForMachinePool...).Should(Succeed())
369370
}

0 commit comments

Comments
 (0)