Add timeout around `test_one_end_stream_not_opened()` body

Tyler Goodlet 2024-04-02 13:33:06 -04:00
parent 3a105e2830
commit 67f673bf36
1 changed files with 23 additions and 19 deletions

View File

@ -845,7 +845,10 @@ async def keep_sending_from_callee(
('caller', 1, never_open_stream),
('callee', 0, keep_sending_from_callee),
],
ids='overrun_condition={}'.format,
ids=[
('caller_1buf_never_open_stream'),
('callee_0buf_keep_sending_from_callee'),
]
)
def test_one_end_stream_not_opened(
overrun_by: tuple[str, int, Callable],
@ -869,6 +872,7 @@ def test_one_end_stream_not_opened(
enable_modules=[__name__],
)
with trio.fail_after(1):
async with portal.open_context(
entrypoint,
) as (ctx, sent):