Skip to content

Commit 54ea767

Browse files
tests: fix list
1 parent 60de6c6 commit 54ea767

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/celery-library/tests/unit/test_tasks.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ async def test_listing_task_uuids_contains_submitted_task(
207207
):
208208
with attempt:
209209
tasks = await celery_task_manager.list_tasks(task_context)
210-
assert len(tasks) == 1
211-
assert task_uuid == tasks[0].uuid
210+
assert any(task.uuid == task_uuid for task in tasks)
212211

213212
tasks = await celery_task_manager.list_tasks(task_context)
214-
assert len(tasks) == 1
215-
assert task_uuid == tasks[0].uuid
213+
assert any(task.uuid == task_uuid for task in tasks)

0 commit comments

Comments
 (0)