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-codesubint_forkserver_backend
parent
8aa07a7932
commit
75d5b4cf7b
|
|
@ -188,9 +188,16 @@ def test_simple_context(
|
||||||
pointlessly_open_stream,
|
pointlessly_open_stream,
|
||||||
reg_addr: tuple,
|
reg_addr: tuple,
|
||||||
debug_mode: bool,
|
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():
|
async def main():
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue