Skip to content

Commit ae1f05a

Browse files
author
Andrei Neagu
committed
typos
1 parent 97f22a0 commit ae1f05a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@
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

6060
def _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

0 commit comments

Comments
 (0)