Skip to content

Commit 13c8e9f

Browse files
committed
integration_test: Improve get_balance test
Add an additional call to `get_balance` after funding the wallet.
1 parent 52cf6d3 commit 13c8e9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

integration_test/tests/wallet.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ pub fn get_address_info() {
8787
fn get_balance() {
8888
let node = Node::new_with_default_wallet();
8989
let json = node.client.get_balance().expect("getbalance");
90-
assert!(json.into_model().is_ok())
90+
assert!(json.into_model().is_ok());
91+
92+
node.fund_wallet();
93+
let json = node.client.get_balance().expect("getbalance");
94+
assert!(json.into_model().is_ok());
9195
}
9296

9397
#[test]

0 commit comments

Comments
 (0)