Jeremiah Lowin commited on
Commit
d588742
·
unverified ·
2 Parent(s): 592788ef96626a

Merge pull request #486 from davenpi/fix-flaky-timeout-test

Browse files
Files changed (1) hide show
  1. tests/client/test_client.py +2 -2
tests/client/test_client.py CHANGED
@@ -512,11 +512,11 @@ class TestErrorHandling:
512
  class TestTimeout:
513
  async def test_timeout(self, fastmcp_server: FastMCP):
514
  async with Client(
515
- transport=FastMCPTransport(fastmcp_server), timeout=0.01
516
  ) as client:
517
  with pytest.raises(
518
  McpError,
519
- match="Timed out while waiting for response to ClientRequest. Waited 0.01 seconds",
520
  ):
521
  await client.call_tool("sleep", {"seconds": 0.1})
522
 
 
512
  class TestTimeout:
513
  async def test_timeout(self, fastmcp_server: FastMCP):
514
  async with Client(
515
+ transport=FastMCPTransport(fastmcp_server), timeout=0.05
516
  ) as client:
517
  with pytest.raises(
518
  McpError,
519
+ match="Timed out while waiting for response to ClientRequest. Waited 0.05 seconds",
520
  ):
521
  await client.call_tool("sleep", {"seconds": 0.1})
522