From 4d61fff19caa797947d8818d711227ad85a8aed5 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 29 Sep 2021 18:46:52 -0400 Subject: 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? --- tests/test_concurrency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_concurrency.py') diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 682e3cf0..0b8d6a8b 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -336,8 +336,8 @@ MULTI_CODE = """ def process_worker_main(args): # Need to pause, or the tasks go too quickly, and some processes # in the pool don't get any work, and then don't record data. - time.sleep(0.02) ret = work(*args) + time.sleep(0.1) return os.getpid(), ret if __name__ == "__main__": # pragma: no branch -- cgit v1.2.1