Skip to content

Commit bb31f9b

Browse files
author
Jianke LIN
committed
test(streamable-http): mark traced timeout guards no-branch
1 parent 4c0174a commit bb31f9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/client/test_streamable_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def test_sse_response_disconnect_before_any_event_id_fails_request() -> No
9999

100100
async with read_stream_writer, read_stream:
101101
await transport._handle_sse_response(response, ctx)
102-
with anyio.fail_after(5):
102+
with anyio.fail_after(5): # pragma: no branch
103103
message = await read_stream.receive()
104104

105105
assert isinstance(message, SessionMessage)
@@ -152,7 +152,7 @@ def connect_sse(*args: object, **kwargs: object) -> PrimingOnlyEventSource:
152152
)
153153

154154
async with read_stream_writer, read_stream:
155-
with anyio.fail_after(5):
155+
with anyio.fail_after(5): # pragma: no branch
156156
await transport._handle_reconnection(ctx, "event-1", retry_interval_ms=0)
157157
message = await read_stream.receive()
158158

0 commit comments

Comments
 (0)