@@ -277,15 +277,15 @@ func ValidateMCNConditionTransitionsOnRebootlessUpdateSNO(oc *exutil.CLI, nodeDi
277
277
clientSet , clientErr := machineconfigclient .NewForConfig (oc .KubeFramework ().ClientConfig ())
278
278
o .Expect (clientErr ).NotTo (o .HaveOccurred (), "Error creating client set for test." )
279
279
280
- // // Remove node disruption policy on test completion or failure
281
- // defer func() {
282
- // // Apply empty MachineConfiguration fixture to remove previously set NodeDisruptionPolicy
283
- // framework.Logf("Removing node disruption policy.")
284
- // ApplyBootImageFixture(oc, nodeDisruptionEmptyFixture)
285
- // }()
280
+ // Remove node disruption policy on test completion or failure
281
+ defer func () {
282
+ // Apply empty MachineConfiguration fixture to remove previously set NodeDisruptionPolicy
283
+ framework .Logf ("Removing node disruption policy." )
284
+ ApplyBootImageFixture (oc , nodeDisruptionEmptyFixture )
285
+ }()
286
286
287
- // // Apply a node disruption policy to allow for rebootless update
288
- // ApplyBootImageFixture(oc, nodeDisruptionFixture)
287
+ // Apply a node disruption policy to allow for rebootless update
288
+ ApplyBootImageFixture (oc , nodeDisruptionFixture )
289
289
290
290
// Delete applied MC on test completion or failure
291
291
defer func () {
@@ -295,9 +295,9 @@ func ValidateMCNConditionTransitionsOnRebootlessUpdateSNO(oc *exutil.CLI, nodeDi
295
295
o .Expect (deleteMCErr ).NotTo (o .HaveOccurred (), fmt .Sprintf ("Could not delete MachineConfig '%v'." , mcName ))
296
296
297
297
// Wait for master MCP to be ready
298
- // TODO: see if there needs to be a wait before checking this update status
299
- framework .Logf ("Waiting for %v MCP to be updated with %v ready machines." , master , 1 )
300
- WaitForMCPToBeReady (oc , clientSet , worker , 1 )
298
+ time . Sleep ( 15 * time . Second ) //wait to not catch the updated state before the deleted mc triggers an update
299
+ framework .Logf ("Waiting for %v MCP to be updated with %v ready machines." , poolName , 1 )
300
+ WaitForMCPToBeReady (oc , clientSet , poolName , 1 )
301
301
}()
302
302
303
303
// Apply MC targeting worker node
0 commit comments