Skip to content

Commit 98ac056

Browse files
author
Andrei Neagu
committed
fixed broken tests
1 parent 690aacb commit 98ac056

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

services/dynamic-sidecar/tests/unit/api/rest/test_containers_long_running_tasks.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def mock_environment(
207207

208208
@pytest.fixture
209209
async def app(
210-
fast_long_running_tasks_cancellation: None, app: FastAPI
210+
app: FastAPI,
211+
fast_long_running_tasks_cancellation: None,
211212
) -> AsyncIterable[FastAPI]:
212213
# add the client setup to the same application
213214
# this is only required for testing, in reality
@@ -480,11 +481,13 @@ async def create_progress(
480481
last_progress_message = (message, percent)
481482
print(message, percent)
482483

483-
task_id = await _get_task_id_create_service_containers(
484-
httpx_async_client, compose_spec, mock_metrics_params
485-
)
486484
result = await _perioduc_result(
487-
app, http_client, task_id, progress_callback=create_progress
485+
app,
486+
http_client,
487+
await _get_task_id_create_service_containers(
488+
httpx_async_client, compose_spec, mock_metrics_params
489+
),
490+
progress_callback=create_progress,
488491
)
489492
assert shared_store.container_names == result
490493

0 commit comments

Comments
 (0)