Skip to content

Commit 9b8922d

Browse files
committed
Increase sleep to make test pass
1 parent 6efcb9b commit 9b8922d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def test_cancel_task(apg_dispatcher, pg_message, pg_control):
8383
await pg_message(msg)
8484

8585
clearing_task = asyncio.create_task(apg_dispatcher.pool.events.work_cleared.wait())
86-
await asyncio.sleep(0.04)
86+
await asyncio.sleep(0.2)
8787
canceled_jobs = await asyncio.wait_for(pg_control.acontrol_with_reply('cancel', data={'uuid': 'foobar'}, timeout=1), timeout=5)
8888
worker_id, canceled_message = canceled_jobs[0][0]
8989
assert canceled_message['uuid'] == 'foobar'

0 commit comments

Comments
 (0)