aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Atack <[email protected]>2020-03-27 17:21:14 +0100
committerJon Atack <[email protected]>2020-04-05 19:40:25 +0200
commit7eacdc5167c8db94df84e206db85817bc64e4921 (patch)
tree5c5e701a576c64f9b9d34c539c371301a554961a
parentImprove getbalances coverage in wallet_balance tests (diff)
downloaddiscoin-7eacdc5167c8db94df84e206db85817bc64e4921.tar.xz
discoin-7eacdc5167c8db94df84e206db85817bc64e4921.zip
Shift coverage from getunconfirmedbalance to getbalances in wallet_abandonconflict tests
-rwxr-xr-xtest/functional/wallet_abandonconflict.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wallet_abandonconflict.py b/test/functional/wallet_abandonconflict.py
index 1122daaf8..d63ab28d6 100755
--- a/test/functional/wallet_abandonconflict.py
+++ b/test/functional/wallet_abandonconflict.py
@@ -110,8 +110,8 @@ class AbandonConflictTest(BitcoinTestFramework):
assert_equal(newbalance, balance - signed3_change)
# Unconfirmed received funds that are not in mempool, also shouldn't show
# up in unconfirmed balance
- unconfbalance = self.nodes[0].getunconfirmedbalance() + self.nodes[0].getbalance()
- assert_equal(unconfbalance, newbalance)
+ balances = self.nodes[0].getbalances()['mine']
+ assert_equal(balances['untrusted_pending'] + balances['trusted'], newbalance)
# Also shouldn't show up in listunspent
assert not txABC2 in [utxo["txid"] for utxo in self.nodes[0].listunspent(0)]
balance = newbalance