We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60de6c6 commit 54ea767Copy full SHA for 54ea767
packages/celery-library/tests/unit/test_tasks.py
@@ -207,9 +207,7 @@ async def test_listing_task_uuids_contains_submitted_task(
207
):
208
with attempt:
209
tasks = await celery_task_manager.list_tasks(task_context)
210
- assert len(tasks) == 1
211
- assert task_uuid == tasks[0].uuid
+ assert any(task.uuid == task_uuid for task in tasks)
212
213
214
215
0 commit comments