Skip to content

Commit e6cbe66

Browse files
author
Andrei Neagu
committed
fixed test
1 parent 910b47c commit e6cbe66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,15 @@ def _get_awaitable() -> Awaitable:
508508

509509
with mock_tasks(mocker):
510510
task_id = await _get_awaitable()
511+
assert task_id.endswith("unique")
511512
async with auto_remove_task(client, task_id):
512513
assert await _get_awaitable() == task_id
513514

514515
# since the previous task was already removed it is again possible
515-
# to create a task
516+
# to create a task and it will share the same task_id
516517
new_task_id = await _get_awaitable()
517-
assert new_task_id != task_id
518+
assert new_task_id.endswith("unique")
519+
assert new_task_id == task_id
518520
async with auto_remove_task(client, task_id):
519521
pass
520522

0 commit comments

Comments
 (0)