Skip to content

Commit 145cb70

Browse files
.
1 parent 63790e1 commit 145cb70

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
@@ -230,10 +230,11 @@ func ValidateMCNConditionTransitionsOnRebootlessUpdateMaster(oc *exutil.CLI, cli
230230
poolName := master
231231
mcName := fmt.Sprintf("90-%v-testfile", poolName)
232232

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

238239
// Remove node disruption policy on test completion or failure
239240
defer func() {
@@ -254,7 +255,7 @@ func ValidateMCNConditionTransitionsOnRebootlessUpdateMaster(oc *exutil.CLI, cli
254255

255256
// Wait for master MCP to be ready
256257
time.Sleep(15 * time.Second) //wait to not catch the updated state before the deleted mc triggers an update
257-
framework.Logf("Waiting for %v MCP to be updated with %v ready machines.", poolName, 1)
258+
framework.Logf("Waiting for %v MCP to be updated with %v ready machines.", poolName, machineCount)
258259
WaitForMCPToBeReady(oc, clientSet, poolName, 1)
259260
}()
260261

0 commit comments

Comments
 (0)