Skip to content

Commit 5b167ca

Browse files
author
Andrei Neagu
committed
fixed failing tests
1 parent 5ec60fc commit 5b167ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/dynamic-sidecar/tests/unit/test_api_rest_workflow_service_metrics.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from pytest_simcore.helpers.monkeypatch_envs import EnvVarsDict, setenvs_from_dict
3535
from servicelib.fastapi.long_running_tasks.client import Client, periodic_task_result
3636
from servicelib.fastapi.long_running_tasks.client import setup as client_setup
37+
from servicelib.long_running_tasks.errors import TaskExceptionError
3738
from servicelib.long_running_tasks.models import TaskId
3839
from simcore_service_dynamic_sidecar._meta import API_VTAG
3940
from simcore_service_dynamic_sidecar.core.docker_utils import get_container_states
@@ -258,7 +259,7 @@ async def test_user_services_fail_to_start(
258259
with_compose_down: bool,
259260
mock_user_services_fail_to_start: None,
260261
):
261-
with pytest.raises(RuntimeError):
262+
with pytest.raises(TaskExceptionError):
262263
async with periodic_task_result(
263264
client=client,
264265
task_id=await _get_task_id_create_service_containers(
@@ -314,7 +315,7 @@ async def test_user_services_fail_to_stop_or_save_data(
314315
# in case of manual intervention multiple stops will be sent
315316
_EXPECTED_STOP_MESSAGES = 4
316317
for _ in range(_EXPECTED_STOP_MESSAGES):
317-
with pytest.raises(RuntimeError):
318+
with pytest.raises(TaskExceptionError):
318319
async with periodic_task_result(
319320
client=client,
320321
task_id=await _get_task_id_docker_compose_down(httpx_async_client),

0 commit comments

Comments
 (0)