Skip to content

Commit ddd7789

Browse files
committed
test: remove unused duplicate request ID handler
1 parent f52ac85 commit ddd7789

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

tests/issues/test_2655_streamable_http_duplicate_request_id.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
LATEST_PROTOCOL_VERSION,
1010
CallToolRequestParams,
1111
CallToolResult,
12-
ListToolsResult,
13-
PaginatedRequestParams,
1412
TextContent,
15-
Tool,
1613
)
1714

1815

@@ -21,20 +18,6 @@ async def test_streamable_http_duplicate_request_id_returns_409_and_preserves_in
2118
started = anyio.Event()
2219
release = anyio.Event()
2320

24-
async def handle_list_tools(
25-
ctx: ServerRequestContext[object],
26-
params: PaginatedRequestParams | None,
27-
) -> ListToolsResult:
28-
return ListToolsResult(
29-
tools=[
30-
Tool(
31-
name="slow_tool",
32-
description="Blocks until released by the test",
33-
input_schema={"type": "object", "properties": {}},
34-
)
35-
]
36-
)
37-
3821
async def handle_call_tool(
3922
ctx: ServerRequestContext[object],
4023
params: CallToolRequestParams,
@@ -43,7 +26,7 @@ async def handle_call_tool(
4326
await release.wait()
4427
return CallToolResult(content=[TextContent(type="text", text="ok")])
4528

46-
server = Server("test-duplicate-request-id", on_list_tools=handle_list_tools, on_call_tool=handle_call_tool)
29+
server = Server("test-duplicate-request-id", on_call_tool=handle_call_tool)
4730
mcp_app = server.streamable_http_app(json_response=True, host="testserver")
4831

4932
async with (

0 commit comments

Comments
 (0)