POOL_LIVENESS_TIMEOUT
Documentation for eth_defi.testing.anvil_fork_pool.POOL_LIVENESS_TIMEOUT data.
- POOL_LIVENESS_TIMEOUT: float = 5.0
Seconds allowed for the liveness probe on a reused pooled fork.
A healthy Anvil answers
eth_chainIdfrom memory in milliseconds, so this budget only has to cover process scheduling and a loaded CI runner — not any real work. It must stay far belowPOOL_WEB3_HTTP_TIMEOUT(60 s), because the entire point of the probe is to detect a wedged fork in seconds instead of paying that 60 s timeout once per test in the group (see the “Wedged-fork recycling” section of the module docstring — 8 wedged forks cost 44 test failures before this existed). Raising it towards 60 s would defeat the mechanism; lowering it risks recycling a merely busy fork, which is cheap but wasteful.