From 3867403fabb4b1e85f4c477d377f037b32df45cd Mon Sep 17 00:00:00 2001 From: goodboy Date: Thu, 16 Apr 2026 20:03:10 -0400 Subject: [PATCH] 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 --- tests/test_resource_cache.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_resource_cache.py b/tests/test_resource_cache.py index 29876539..4902fb7a 100644 --- a/tests/test_resource_cache.py +++ b/tests/test_resource_cache.py @@ -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