-
Notifications
You must be signed in to change notification settings - Fork 120
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
tests(rpc): add snapshot tests for rpc methods responses #4352
Conversation
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.
This looks really good!
Can we snapshot the serialized JSON format, and open tickets for the missing RPCs?
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.
All looks good to me. I just noticed a few petty nits while going through the PR.
* Create the snapshot settings once * Snapshot testnet state, RPCs, and transparent addresses * Tweak header comment * Ignore some duplicated dependencies we don't control
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
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.
Let's merge this once CI passes
Motivation
We want to lock the responses of the rpc methods so if anything change, tests will fail.
Close #4131
Solution
Add snapshots for each rpc method.
Review
@teor2345 introduced the snapshots and worked in most of them so it can be a good candidate, however anyone who had worked in this file before will find this tests easy to understand (with the addition of the snapshot).
Reviewer Checklist
Follow Up Work