-
Notifications
You must be signed in to change notification settings - Fork 14
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
Clean up tests #56
Clean up tests #56
Conversation
integration_test/tests/wallet.rs
Outdated
#[cfg(feature = "TODO")] | ||
// TODO: We are getting an error for missing `pubkeys` field but the field is optional? |
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.
In 86dc357:
You need #[serde(default)]
to make an Option<T>
field actually optional. Otherwise it is required to be present and allowed to be null
.
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.
Legend. So that means all the other Option
fields must be getting null
because this is the first time I had this problem and its definitely not the first usage of Option
. TIL. Thanks.
integration_test/tests/wallet.rs
Outdated
// node.mine_a_block(); | ||
|
||
// let json = node.client.get_address_info(&address).expect("getaddressinfo"); | ||
// assert!(json.into_model().is_ok()); |
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.
In 86dc357:
Did you intend to add so much commented-out code in a PR titled "clean up tests"? Did you mean to call it "make tests less clean"? ;)
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.
lol, fair points. Although I do like that title - make tests less clean.
We have a function that funds the wallet - use it.
Add an additional call to `get_balance` after funding the wallet.
16cd292
to
13c8e9f
Compare
utACK 13c8e9f |
Do some trivial integration test clean ups.