From cc97900016bd655f7c57d534572ff5ba472cfca4 Mon Sep 17 00:00:00 2001 From: Christian Schlotter Date: Wed, 6 Dec 2023 14:51:56 +0100 Subject: [PATCH] test: wait for the topology to get rolled out to the machinedeployment before continuing --- test/framework/machinedeployment_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {