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 2022-02-20 11:01:26 -05:00
parent 348d45e87c
commit 81f2418d78
1 changed files with 1 additions and 1 deletions

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"