-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(api): Test coverage for WebSocket server #525
test(api): Test coverage for WebSocket server #525
Conversation
@montekki I haven't managed to find a way to reproduce duplicating or dropping event notifications so far. The notification logic, while not always straightforward, seems correct. If you have an idea how to reproduce the bug, please share. |
7a4ab58
to
b401387
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was only able to have a quick look and it looks good. @slowli please let me know if you want me to have a close look at any particular part!
@RomanBrodetski Please take a look at FIXMEs in tests. They are related to the |
@slowli Why again are |
They are indeed not WS-specific, although in practice it's impossible to use As for your proposal: Could it make sense to move tests within this PR (just make them test the HTTP server)? If this PR is merged before #546, then that PR could update the tests to reflect corrected server behavior. |
Yeah good we could do two things I think
Whatever you prefer |
What ❔
Cover basic WS-specific JSON-RPC functionality (subscriptions,
getFilterChanges
) with tests.Why ❔
Will allow to set the expectations the current server behavior, so that it could be evolved in the future w/o unexpected / breaking changes (e.g., when implementing
jsonrpsee
-based subscriptions).Checklist
zk fmt
andzk lint
.