File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
services/dynamic-scheduler/tests/unit/services/generic_scheduler Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1213,7 +1213,7 @@ async def test_restart_revert_operation_step_in_error(
12131213 await _ensure_keys_in_store (selected_app , expected_keys = formatted_expected_keys )
12141214
12151215 # give some time for the deferred runner to store the errors
1216- # avoids flkayness
1216+ # avoids flakiness
12171217 await asyncio .sleep (0.1 )
12181218
12191219 # set step to no longer raise and restart the failed steps
@@ -1332,7 +1332,7 @@ async def test_errors_with_restart_operation_step_in_error(
13321332 ],
13331333 {
13341334 "bs_revert_c_req_1" : _CTX_VALUE , # required by create
1335- "bs_revert_r_req_1" : _CTX_VALUE , # not created autmatically since crete fails
1335+ "bs_revert_r_req_1" : _CTX_VALUE , # not created automatically since crete fails
13361336 },
13371337 [
13381338 CreateSequence (RPCtxR1 ),
@@ -1347,8 +1347,8 @@ async def test_errors_with_restart_operation_step_in_error(
13471347 {
13481348 "bs_revert_c_req_1" : _CTX_VALUE , # required by create
13491349 "bs_revert_c_req_2" : _CTX_VALUE , # required by create
1350- "bs_revert_r_req_1" : _CTX_VALUE , # not created autmatically since crete fails
1351- "bs_revert_r_req_2" : _CTX_VALUE , # not created autmatically since crete fails
1350+ "bs_revert_r_req_1" : _CTX_VALUE , # not created automatically since crete fails
1351+ "bs_revert_r_req_2" : _CTX_VALUE , # not created automatically since crete fails
13521352 },
13531353 [
13541354 CreateRandom (RPCtxR1 , RPCtxR2 ),
Original file line number Diff line number Diff line change 5353
5454
5555_OPERATION_MIN_RUNTIME : Final [timedelta ] = timedelta (seconds = 2 )
56- _OPRATION_STEPS_COUNT : Final [NonNegativeInt ] = 10
57- _STEP_SLEEP_DURATION : Final [timedelta ] = _OPERATION_MIN_RUNTIME / _OPRATION_STEPS_COUNT
56+ _OPERATION_STEPS_COUNT : Final [NonNegativeInt ] = 10
57+ _STEP_SLEEP_DURATION : Final [timedelta ] = _OPERATION_MIN_RUNTIME / _OPERATION_STEPS_COUNT
5858
5959
6060def _get_random_interruption_duration () -> NonNegativeFloat :
61- ranom_duration = secrets .SystemRandom ().uniform (
61+ random_duration = secrets .SystemRandom ().uniform (
6262 0.1 , _OPERATION_MIN_RUNTIME .total_seconds ()
6363 )
64- print (f"⏳ Waiting { ranom_duration :.1f} seconds before interrupting..." )
65- return ranom_duration
64+ print (f"⏳ Waiting { random_duration :.1f} seconds before interrupting..." )
65+ return random_duration
6666
6767
6868@pytest .fixture
You can’t perform that action at this time.
0 commit comments