Skip to content

Commit 1a40721

Browse files
author
Andrei Neagu
committed
fixed
1 parent 479165b commit 1a40721

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/service-library/tests/aiohttp/long_running_tasks/test_long_running_tasks.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@ async def test_list_tasks(
214214
list_of_tasks = TypeAdapter(list[TaskGet]).validate_python(data)
215215
assert len(list_of_tasks) == NUM_TASKS
216216

217+
# the task name is properly formatted
218+
assert all(
219+
task.task_name.startswith(
220+
"POST /long_running_task:start?num_strings=10&sleep_time="
221+
)
222+
for task in list_of_tasks
223+
)
217224
# now wait for them to finish
218225
await asyncio.gather(*(wait_for_task(client, task_id, {}) for task_id in results))
219226
# now get the result one by one

0 commit comments

Comments
 (0)