Scale `test_open_local_sub_to_stream` timeout by CPU factor

Import and apply `cpu_scaling_factor()` from
`conftest`; bump base from 3.6 -> 4 and multiply
through so CI boxes with slow CPUs don't flake.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
subint_spawner_backend
Gud Boi 2026-04-16 20:03:10 -04:00
parent 7c8e5a6732
commit 3867403fab
1 changed files with 6 additions and 3 deletions

View File

@ -213,9 +213,12 @@ def test_open_local_sub_to_stream(
N local tasks using `trionics.maybe_open_context()`.
'''
timeout: float = 3.6
if platform.system() == "Windows":
timeout: float = 10
from .conftest import cpu_scaling_factor
timeout: float = (
4
if not platform.system() == "Windows"
else 10
) * cpu_scaling_factor()
if debug_mode:
timeout = 999