Skip to content

Commit 81bd191

Browse files
committed
Remove empty params dict from PingRequest
1 parent 81f3e36 commit 81bd191

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/server/test_cancel_handling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def slow_handler(req):
6161
server.request_handlers[types.PingRequest] = slow_handler
6262

6363
# Create mock message and session
64-
mock_req = PingRequest(method="ping", params={})
64+
mock_req = PingRequest(method="ping")
6565
mock_session = MagicMock()
6666
mock_context = None
6767

@@ -109,7 +109,7 @@ async def fast_handler(req):
109109

110110
# First request (will be cancelled)
111111
mock_message1 = MockRequestResponder()
112-
mock_req1 = PingRequest(method="ping", params={})
112+
mock_req1 = PingRequest(method="ping")
113113

114114
handle_task = asyncio.create_task(
115115
server._handle_request(mock_message1, mock_req1, MagicMock(), None, raise_exceptions=False) # type: ignore
@@ -129,7 +129,7 @@ async def fast_handler(req):
129129

130130
# Second request (should work normally)
131131
mock_message2 = MockRequestResponder()
132-
mock_req2 = PingRequest(method="ping", params={})
132+
mock_req2 = PingRequest(method="ping")
133133

134134
# This should complete successfully
135135
await server._handle_request(mock_message2, mock_req2, MagicMock(), None, raise_exceptions=False) # type: ignore

0 commit comments

Comments
 (0)