Skip to content

Commit b94d089

Browse files
author
Andrei Neagu
committed
refactor
1 parent a538da6 commit b94d089

File tree

1 file changed

+2
-3
lines changed
  • services/dynamic-scheduler/tests/unit/services/generic_scheduler

1 file changed

+2
-3
lines changed

services/dynamic-scheduler/tests/unit/services/generic_scheduler/test__core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)