@@ -61,7 +61,7 @@ async def slow_handler(req):
61
61
server .request_handlers [types .PingRequest ] = slow_handler
62
62
63
63
# Create mock message and session
64
- mock_req = PingRequest (method = "ping" , params = {} )
64
+ mock_req = PingRequest (method = "ping" )
65
65
mock_session = MagicMock ()
66
66
mock_context = None
67
67
@@ -109,7 +109,7 @@ async def fast_handler(req):
109
109
110
110
# First request (will be cancelled)
111
111
mock_message1 = MockRequestResponder ()
112
- mock_req1 = PingRequest (method = "ping" , params = {} )
112
+ mock_req1 = PingRequest (method = "ping" )
113
113
114
114
handle_task = asyncio .create_task (
115
115
server ._handle_request (mock_message1 , mock_req1 , MagicMock (), None , raise_exceptions = False ) # type: ignore
@@ -129,7 +129,7 @@ async def fast_handler(req):
129
129
130
130
# Second request (should work normally)
131
131
mock_message2 = MockRequestResponder ()
132
- mock_req2 = PingRequest (method = "ping" , params = {} )
132
+ mock_req2 = PingRequest (method = "ping" )
133
133
134
134
# This should complete successfully
135
135
await server ._handle_request (mock_message2 , mock_req2 , MagicMock (), None , raise_exceptions = False ) # type: ignore
0 commit comments