Skip to content

Commit e185742

Browse files
test: bound empty stream regression
1 parent 76bcfc9 commit e185742

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/client/test_streamable_http.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,8 @@ async def no_sleep(_delay: float) -> None:
754754
send, receive = create_context_streams[SessionMessage | Exception](0)
755755

756756
async with httpx2.AsyncClient(transport=httpx2.MockTransport(handler)) as http:
757-
await transport.handle_get_stream(http, send)
757+
with anyio.fail_after(5):
758+
await transport.handle_get_stream(http, send)
758759

759760
assert len(requests) == MAX_RECONNECTION_ATTEMPTS
760761
send.close()

0 commit comments

Comments
 (0)