Skip to content

Commit 0232617

Browse files
committed
fixed test
1 parent 5cfb399 commit 0232617

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/autoscaling/tests/unit/test_modules_dask.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
_authentication_types = [
4444
NoAuthentication(),
4545
TLSAuthentication.model_construct(
46-
**TLSAuthentication.model_config["json_schema_extra"]["examples"][0]
46+
**TLSAuthentication.model_json_schema()["examples"][0]
4747
),
4848
]
4949

@@ -267,7 +267,9 @@ def _add_fct(x: int, y: int) -> int:
267267
)
268268
assert isinstance(exc, RuntimeError)
269269
else:
270-
result = await future_queued_task.result(timeout=_DASK_SCHEDULER_REACTION_TIME_S) # type: ignore
270+
result = await future_queued_task.result(
271+
timeout=_DASK_SCHEDULER_REACTION_TIME_S
272+
) # type: ignore
271273
assert result == 7
272274

273275
await _wait_for_dask_scheduler_to_change_state()

0 commit comments

Comments
 (0)