Commit b3997558 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

test/test_server.py: json-rpc ids are now unique

parent 9ccca3dc
......@@ -304,9 +304,12 @@ def send_request(request: str, expect_response: bool = True) -> str:
asyncio_run(send(request))
return response
jrpc_id = 0
def json_rpc(method: str, params: dict) -> str:
return json.dumps({'jsonrpc': '2.0', 'id':'0', 'method':method, 'params': params})
global jrpc_id
jrpc_id += 1
return json.dumps({'jsonrpc': '2.0', 'id':jrpc_id, 'method':method, 'params': params})
# initialized = multiprocessing.Value('b', 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment