From 88c1c083bd435bd42e1ece2445cb89ca4bc2232b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 18 Aug 2025 13:07:47 -0400 Subject: [PATCH] Add timeout to inf-streamer test --- tests/test_cancellation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_cancellation.py b/tests/test_cancellation.py index 06c6dc8d..27fd59d7 100644 --- a/tests/test_cancellation.py +++ b/tests/test_cancellation.py @@ -236,7 +236,10 @@ async def stream_forever(): async def test_cancel_infinite_streamer(start_method): # stream for at most 1 seconds - with trio.move_on_after(1) as cancel_scope: + with ( + trio.fail_after(4), + trio.move_on_after(1) as cancel_scope + ): async with tractor.open_nursery() as n: portal = await n.start_actor( 'donny',