tests: fix error in websocket_client fixture

A jsonrpc request is a notification when no ID is present.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan committed 2022-02-22 07:47:38 -05:00
1 parent 348d45e87c
commit 81f2418d78
1 file changed
+1 -1
+1 -1
View File
@@ -86,7 +86,7 @@ class WebsocketClient:
req_id: Optional[int] = resp.get("id")
method: Optional[str] = resp.get("method")
if method is not None:
if req_id is not None:
if req_id is None:
params = resp.get("params", [])
if not isinstance(params, list):
pytest.fail("jsonrpc notification params"