Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efbcb18

Browse files
committed
Issue #11766: increase countdown waiting for a pool of processes to start
up. Hopefully fixes transient buildbot failures.
2 parents 59c8ac7 + 540ab06 commit efbcb18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_multiprocessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,8 @@ def test_pool_worker_lifetime(self):
11821182
# Refill the pool
11831183
p._repopulate_pool()
11841184
# Wait until all workers are alive
1185-
countdown = 5
1185+
# (countdown * DELTA = 5 seconds max startup process time)
1186+
countdown = 50
11861187
while countdown and not all(w.is_alive() for w in p._pool):
11871188
countdown -= 1
11881189
time.sleep(DELTA)

0 commit comments

Comments
 (0)