From b7546fd221b11f48a56cf30132543772c8cbe1a6 Mon Sep 17 00:00:00 2001 From: goodboy Date: Sun, 1 Mar 2026 20:35:28 -0500 Subject: [PATCH] Longer timeout for `test_one_end_stream_not_opened` On non-linux that is. --- tests/test_context_stream_semantics.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_context_stream_semantics.py b/tests/test_context_stream_semantics.py index 4c347e91..f860e4d3 100644 --- a/tests/test_context_stream_semantics.py +++ b/tests/test_context_stream_semantics.py @@ -9,6 +9,7 @@ from itertools import count import math import platform from pprint import pformat +import sys from typing import ( Callable, ) @@ -941,6 +942,11 @@ def test_one_end_stream_not_opened( from tractor._runtime import Actor buf_size = buf_size_increase + Actor.msg_buffer_size + timeout: float = ( + 1 if sys.platform == 'linux' + else 3 + ) + async def main(): async with tractor.open_nursery( debug_mode=debug_mode, @@ -950,7 +956,7 @@ def test_one_end_stream_not_opened( enable_modules=[__name__], ) - with trio.fail_after(1): + with trio.fail_after(timeout): async with portal.open_context( entrypoint, ) as (ctx, sent):