Skip to content

Commit 309e346

Browse files
authored
Merge pull request kubernetes-sigs#9819 from chrischdi/pr-test-md-scale-fix
🐛 test: wait for topology to get rolled out before continuing with scaling checks
2 parents 5369e1d + cc97900 commit 309e346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/machinedeployment_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ func ScaleAndWaitMachineDeploymentTopology(ctx context.Context, input ScaleAndWa
582582
return -1, errors.New("Machine count does not match existing nodes count")
583583
}
584584
return nodeRefCount, nil
585-
}, 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)
585+
}, input.WaitForMachineDeployments...).Should(Equal(int(input.Replicas)), "Timed out waiting for Machine Deployment %s to have %d replicas", klog.KObj(&md), input.Replicas)
586586
}
587587

588588
type AssertMachineDeploymentReplicasInput struct {

0 commit comments

Comments
 (0)