Skip to content

Commit 12a64d2

Browse files
more test
1 parent 75dc910 commit 12a64d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/storage/tests/unit/test_modules_celery.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async def test_submitting_task_with_failure_results_with_error(
166166
assert f"{raw_result}" == "Something strange happened: BOOM!"
167167

168168

169-
async def test_aborting_task_results_with_aborted_state(
169+
async def test_cancelling_a_running_task_aborts_and_deletes(
170170
celery_client: CeleryTaskClient,
171171
):
172172
task_context = TaskContext(user_id=42)
@@ -193,6 +193,8 @@ async def test_aborting_task_results_with_aborted_state(
193193
await celery_client.get_task_status(task_context, task_uuid)
194194
).task_state == TaskState.ABORTED
195195

196+
assert task_uuid not in await celery_client.list_tasks(task_context)
197+
196198

197199
async def test_listing_task_uuids_contains_submitted_task(
198200
celery_client: CeleryTaskClient,

0 commit comments

Comments
 (0)