Skip to content

Commit 1b52134

Browse files
.
1 parent b30f534 commit 1b52134

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/extended/machine_config/machine_config_node.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,11 @@ func ValidateMCNConditionTransitionsOnRebootlessUpdateMaster(oc *exutil.CLI, cli
239239
poolName := master
240240
mcName := fmt.Sprintf("90-%v-testfile", poolName)
241241

242-
// Get the starting config version
242+
// Get the starting config version & machine count
243243
mcp, mcpErr := clientSet.MachineconfigurationV1().MachineConfigPools().Get(context.TODO(), poolName, metav1.GetOptions{})
244244
o.Expect(mcpErr).NotTo(o.HaveOccurred(), fmt.Sprintf("Could not get MCP '%v'; %v", poolName, mcpErr))
245245
startingConfigVersion := mcp.Spec.Configuration.Name
246+
machineCount := mcp.Status.MachineCount
246247

247248
// Remove node disruption policy on test completion or failure
248249
defer func() {
@@ -263,7 +264,7 @@ func ValidateMCNConditionTransitionsOnRebootlessUpdateMaster(oc *exutil.CLI, cli
263264

264265
// Wait for master MCP to be ready
265266
time.Sleep(15 * time.Second) //wait to not catch the updated state before the deleted mc triggers an update
266-
framework.Logf("Waiting for %v MCP to be updated with %v ready machines.", poolName, 1)
267+
framework.Logf("Waiting for %v MCP to be updated with %v ready machines.", poolName, machineCount)
267268
WaitForMCPToBeReady(oc, clientSet, poolName, 1)
268269
}()
269270

0 commit comments

Comments
 (0)