diff --git a/test/framework/machinedeployment_helpers.go b/test/framework/machinedeployment_helpers.go index 117f7e2f3dce..aa5b3b2e9921 100644 --- a/test/framework/machinedeployment_helpers.go +++ b/test/framework/machinedeployment_helpers.go @@ -582,7 +582,7 @@ func ScaleAndWaitMachineDeploymentTopology(ctx context.Context, input ScaleAndWa return -1, errors.New("Machine count does not match existing nodes count") } return nodeRefCount, nil - }, input.WaitForMachineDeployments...).Should(Equal(int(*md.Spec.Replicas)), "Timed out waiting for Machine Deployment %s to have %d replicas", klog.KObj(&md), *md.Spec.Replicas) + }, input.WaitForMachineDeployments...).Should(Equal(int(input.Replicas)), "Timed out waiting for Machine Deployment %s to have %d replicas", klog.KObj(&md), input.Replicas) } type AssertMachineDeploymentReplicasInput struct {