mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Issue #11766: increase countdown waiting for a pool of processes to start
up. Hopefully fixes transient buildbot failures.
This commit is contained in:
parent
bb4e470dcd
commit
c2b0d76bf3
1 changed files with 2 additions and 1 deletions
|
@ -1126,7 +1126,8 @@ class _TestPoolWorkerLifetime(BaseTestCase):
|
|||
# Refill the pool
|
||||
p._repopulate_pool()
|
||||
# Wait until all workers are alive
|
||||
countdown = 5
|
||||
# (countdown * DELTA = 5 seconds max startup process time)
|
||||
countdown = 50
|
||||
while countdown and not all(w.is_alive() for w in p._pool):
|
||||
countdown -= 1
|
||||
time.sleep(DELTA)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue