File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
services/storage/tests/unit Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
197199async def test_listing_task_uuids_contains_submitted_task (
198200 celery_client : CeleryTaskClient ,
You can’t perform that action at this time.
0 commit comments