feat: standardize timeout values to floats in seconds (#1766)
This commit is contained in:
parent
4807eb5a80
commit
2aa1ad2a69
1 changed files with 38 additions and 49 deletions
|
|
@ -270,12 +270,10 @@ async def test_response_id_non_numeric_string_no_match():
|
|||
async def make_request(client_session: ClientSession):
|
||||
try:
|
||||
# Use a short timeout since we expect this to fail
|
||||
from datetime import timedelta
|
||||
|
||||
await client_session.send_request(
|
||||
ClientRequest(types.PingRequest()),
|
||||
types.EmptyResult,
|
||||
request_read_timeout_seconds=timedelta(seconds=0.5),
|
||||
request_read_timeout_seconds=0.5,
|
||||
)
|
||||
pytest.fail("Expected timeout") # pragma: no cover
|
||||
except McpError as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue