Skip to content

Commit a538da6

Browse files
author
Andrei Neagu
committed
fixed flaky
1 parent 8009882 commit a538da6

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,9 @@ async def test_errors_with_restart_operation_step_in_error(
12811281
if not in_manual_intervention:
12821282
# force restart of step as it would be in manual intervention
12831283
# this is not allowed
1284+
1285+
# give some time for the deferred runner to store the errors
1286+
await asyncio.sleep(0.1)
12841287
with pytest.raises(StepNotWaitingForManualInterventionError):
12851288
await get_core(selected_app).restart_operation_step_in_error(
12861289
schedule_id,

0 commit comments

Comments
 (0)