diff --git a/tests/fixtures/websocket_client.py b/tests/fixtures/websocket_client.py index 34d5110..ccb126d 100644 --- a/tests/fixtures/websocket_client.py +++ b/tests/fixtures/websocket_client.py @@ -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"