Skip to content

Commit 6c57176

Browse files
committed
Drop the timeout guard from the SSE header test
1 parent c299985 commit 6c57176

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎tests/server/test_streamable_http_modern.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,9 @@ async def append_header(message: Message) -> None:
525525
headers={MCP_PROTOCOL_VERSION_HEADER: LATEST_MODERN_VERSION, "accept": "application/json, text/event-stream"},
526526
) as http:
527527
for _ in range(2):
528-
with anyio.fail_after(5):
529-
response = await http.post(
530-
"/mcp", json=_list_tools_body_with_token("tok"), headers={MCP_METHOD_HEADER: "tools/list"}
531-
)
528+
response = await http.post(
529+
"/mcp", json=_list_tools_body_with_token("tok"), headers={MCP_METHOD_HEADER: "tools/list"}
530+
)
532531
assert response.headers["content-type"].split(";", 1)[0] == "text/event-stream"
533532
assert response.headers.get_list("x-id") == ["abc"]
534533

0 commit comments

Comments
 (0)