test: make explicit returned stdlib types in tests#604
Conversation
jamillambert
left a comment
There was a problem hiding this comment.
One nit, the rest is good.
| fn control__uptime() { | ||
| let node = BitcoinD::with_wallet(Wallet::None, &[]); | ||
| let _ = node.client.uptime().unwrap(); | ||
| let _ : u32 = node.client.uptime().unwrap(); |
There was a problem hiding this comment.
| let _ : u32 = node.client.uptime().unwrap(); | |
| let _: u32 = node.client.uptime().unwrap(); |
There was a problem hiding this comment.
Just ran CI and the formatter also picked this up
There was a problem hiding this comment.
Fixed
Checking formatting...
$ cargo fmt -p bitcoind -p corepc-client -p jsonrpc -p bitreq -p corepc-types -p jsonrpc-fuzz --check
Formatting check passed
There was a problem hiding this comment.
just fmt does what you need. Did you come up with that command yourself or did you get AI do it? I'm interested in the answer because if LLMs are not reading the justfile to work out commands then we need to configure them better.
61730dc to
60c493d
Compare
jamillambert
left a comment
There was a problem hiding this comment.
ACK 60c493d
Thanks
|
Missed one, not sure how or why. #[test]
#[cfg(not(feature = "v25_and_below"))]
fn mining__get_prioritised_transactions() {
let node = BitcoinD::with_wallet(Wallet::Default, &[]);
node.fund_wallet();
let _ = node.client.get_prioritised_transactions().expect("getprioritisedtransactions");
} |
|
Related: the Everything else looks good. Thanks for uncovering our bugs! |
Fixes #600
No more primitive return types in tests