From 75d5b4cf7b1e0a86d444e555ff75bb25c4a51133 Mon Sep 17 00:00:00 2001 From: goodboy Date: Wed, 13 May 2026 12:03:58 -0400 Subject: [PATCH] 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 --- tests/test_context_stream_semantics.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_context_stream_semantics.py b/tests/test_context_stream_semantics.py index 5548ed17..3f5f2cee 100644 --- a/tests/test_context_stream_semantics.py +++ b/tests/test_context_stream_semantics.py @@ -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():