Jeremiah Lowin commited on
Commit
bf1d7b7
·
unverified ·
2 Parent(s): 59f2792d588742

Merge branch 'main' into lifecycle

Browse files
.github/labeler.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ documentation:
2
+ - changed-files:
3
+ - any-glob-to-any-file: "docs/**"
4
+
5
+ example:
6
+ - changed-files:
7
+ - any-glob-to-any-file:
8
+ - "examples/**"
9
+
10
+ tests:
11
+ - changed-files:
12
+ - any-glob-to-any-file: "tests/**"
13
+
14
+ "component: HTTP":
15
+ - changed-files:
16
+ - any-glob-to-any-file: "src/fastmcp/server/http.py"
17
+
18
+ "component: client":
19
+ - changed-files:
20
+ - any-glob-to-any-file: "src/fastmcp/client/**"
21
+
22
+ "contrib":
23
+ - changed-files:
24
+ - any-glob-to-any-file: "src/fastmcp/contrib/**"
25
+
26
+ "component: openapi":
27
+ - changed-files:
28
+ - any-glob-to-any-file:
29
+ - "src/**/*openapi*.py"
.github/workflows/labeler.yml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "Pull Request Labeler"
2
+ on:
3
+ - pull_request_target
4
+
5
+ jobs:
6
+ labeler:
7
+ permissions:
8
+ contents: read
9
+ pull-requests: write
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/labeler@v5
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