Skip to content

Commit 050b85e

Browse files
committed
Fix cancel tests.
1 parent b9a07a0 commit 050b85e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration/long_callback/test_basic_long_callback.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def setup_long_callback_app(manager_name, app_name):
6363
],
6464
preexec_fn=os.setpgrp,
6565
)
66+
# Wait for the worker to be ready, if you cancel before it is ready, the job
67+
# will still be queued.
68+
time.sleep(1)
6669
try:
6770
yield import_app(f"tests.integration.long_callback.{app_name}")
6871
finally:

0 commit comments

Comments
 (0)