Skip to content

Commit 6933486

Browse files
committed
Fix tests
1 parent 900548c commit 6933486

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/issues/test_malformed_input.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
JSONRPCError,
1313
JSONRPCMessage,
1414
JSONRPCRequest,
15+
ServerCapabilities,
1516
)
1617

1718

@@ -40,7 +41,11 @@ async def test_malformed_initialize_request_does_not_crash_server():
4041
async with ServerSession(
4142
read_stream=read_receive_stream,
4243
write_stream=write_send_stream,
43-
init_options=InitializationOptions(),
44+
init_options=InitializationOptions(
45+
server_name="test_server",
46+
server_version="1.0.0",
47+
capabilities=ServerCapabilities(),
48+
),
4449
):
4550
# Send the malformed request
4651
await read_send_stream.send(request_message)
@@ -100,7 +105,11 @@ async def test_multiple_concurrent_malformed_requests():
100105
async with ServerSession(
101106
read_stream=read_receive_stream,
102107
write_stream=write_send_stream,
103-
init_options=InitializationOptions(),
108+
init_options=InitializationOptions(
109+
server_name="test_server",
110+
server_version="1.0.0",
111+
capabilities=ServerCapabilities(),
112+
),
104113
):
105114
# Send multiple malformed requests concurrently
106115
malformed_requests = []

0 commit comments

Comments
 (0)