Skip to content

Commit ca12fcd

Browse files
committed
fix: udpates for build
Signed-off-by: Samantha Coyle <sam@diagrid.io>
1 parent 740b503 commit ca12fcd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/issues/test_streamable_http_405_get_stream.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ async def test_405_get_stream_does_not_hang(caplog: pytest.LogCaptureFixture):
7272
async with httpx.AsyncClient(
7373
transport=httpx.ASGITransport(app=app), base_url="http://testserver", timeout=5.0
7474
) as http_client:
75-
async with streamable_http_client("http://testserver/mcp", http_client=http_client) as (
76-
read_stream,
77-
write_stream,
78-
):
75+
transport_cm = streamable_http_client("http://testserver/mcp", http_client=http_client)
76+
async with transport_cm as transport_streams: # pragma: no cover
77+
read_stream, write_stream = transport_streams
7978
async with ClientSession(read_stream, write_stream) as session:
8079
# Initialize sends the initialized notification internally
8180
with anyio.fail_after(5.0):

0 commit comments

Comments
 (0)