forked from goodboy/tractor
1
0
Fork 0

Add timeout to inf-streamer test

Tyler Goodlet 2025-08-18 13:07:47 -04:00
parent b096867d40
commit 88c1c083bd
1 changed files with 4 additions and 1 deletions

View File

@ -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',