We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f96aaa5 commit bd73448Copy full SHA for bd73448
tests/shared/test_session.py
@@ -1,4 +1,5 @@
1
from collections.abc import AsyncGenerator
2
+from datetime import timedelta
3
4
import anyio
5
import pytest
@@ -165,7 +166,11 @@ async def handle_list_tools() -> list[types.Tool]:
165
166
async def make_request(client_session: ClientSession):
167
nonlocal ev_cancelled
168
try:
- await client_session.call_tool("slow_tool", cancellable=False)
169
+ await client_session.call_tool(
170
+ "slow_tool",
171
+ cancellable=False,
172
+ read_timeout_seconds=timedelta(seconds=10),
173
+ )
174
except McpError:
175
pytest.fail("Request should not have been cancelled")
176
0 commit comments