File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
services/dynamic-scheduler/tests/unit/services/generic_scheduler Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1263,6 +1263,8 @@ async def test_errors_with_restart_operation_step_in_error(
12631263 CreateRandom (_SF1 , _FCR1 ),
12641264 ],
12651265 )
1266+ # give some time for the deferred runner to store the errors
1267+ await asyncio .sleep (0.1 )
12661268
12671269 with pytest .raises (StepNameNotInCurrentGroupError ):
12681270 await get_core (selected_app ).restart_operation_step_in_error (
@@ -1281,9 +1283,6 @@ async def test_errors_with_restart_operation_step_in_error(
12811283 if not in_manual_intervention :
12821284 # force restart of step as it would be in manual intervention
12831285 # this is not allowed
1284-
1285- # give some time for the deferred runner to store the errors
1286- await asyncio .sleep (0.1 )
12871286 with pytest .raises (StepNotWaitingForManualInterventionError ):
12881287 await get_core (selected_app ).restart_operation_step_in_error (
12891288 schedule_id ,
You can’t perform that action at this time.
0 commit comments