Adjust `test_simple_context` timeout for forking spawner

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

(cherry picked from commit 75d5b4cf7b)
wkt/tooling_enhancements_from_mtf_spawner
Gud Boi 2026-05-13 12:03:58 -04:00
parent cbf54db96a
commit 981c174b80
1 changed files with 8 additions and 1 deletions

View File

@ -188,9 +188,16 @@ def test_simple_context(
pointlessly_open_stream,
reg_addr: tuple,
debug_mode: bool,
is_forking_spawner: bool,
):
timeout = 1.5 if not platform.system() == 'Windows' else 4
timeout: float = 1.5
# windows and forking-spawner both have "slower but more
# deterministic" cancel teardown.
if platform.system() == 'Windows':
timeout = 4
elif is_forking_spawner:
timeout = 3
async def main():