Skip to content

Commit 5198a37

Browse files
fix: add wait after submit
1 parent 9327579 commit 5198a37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ async def test_async_jobs_cancel(
301301
payload=60 * 10, # test hangs if not cancelled properly
302302
)
303303

304+
await asyncio.sleep(3)
305+
304306
await async_jobs.cancel(
305307
async_jobs_rabbitmq_rpc_client,
306308
rpc_namespace=ASYNC_JOBS_RPC_NAMESPACE,

0 commit comments

Comments
 (0)