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:
1 parent
348d45e87c
commit
81f2418d78
1 file changed
+1
-1
Vendored
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user