Skip to content

Commit 4d61fff

Browse files
committed
test: fix flaky multiprocessing tests
Tests are failing because we expect to see three different pids, but only get two. Is that because the work is being completed too quickly?
1 parent 0ded3df commit 4d61fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tests/test_concurrency.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ def work(x):
336336
def process_worker_main(args):
337337
# Need to pause, or the tasks go too quickly, and some processes
338338
# in the pool don't get any work, and then don't record data.
339-
time.sleep(0.02)
340339
ret = work(*args)
340+
time.sleep(0.1)
341341
return os.getpid(), ret
342342
343343
if __name__ == "__main__": # pragma: no branch

0 commit comments

Comments
 (0)