Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115167
D1799.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D1799.diff
View Options
diff --git a/test/functional/wallet-accounts.py b/test/functional/wallet-accounts.py
--- a/test/functional/wallet-accounts.py
+++ b/test/functional/wallet-accounts.py
@@ -69,10 +69,6 @@
node.generate(1)
- # we want to reset so that the "" account has what's expected.
- # otherwise we're off by exactly the fee amount as that's mined
- # and matures in the next 100 blocks
- node.sendfrom("", common_address, fee)
accounts = ["a", "b", "c", "d", "e"]
amount_to_send = 1.0
account_addresses = dict()
@@ -104,13 +100,17 @@
node.generate(101)
- expected_account_balances = {"": 5200}
+ # the "" account has what's expected, plus exactly the fee amount as
+ # that's been mined and matures in the next 100 blocks.
+ expected_account_balances = {"": 5200 + fee}
for account in accounts:
expected_account_balances[account] = 0
assert_equal(node.listaccounts(), expected_account_balances)
- assert_equal(node.getbalance(""), 5200)
+ # the "" account has what's expected, plus exactly the fee amount as
+ # that's been mined and matures in the next 100 blocks.
+ assert_equal(node.getbalance(""), 5200 + fee)
for account in accounts:
address = node.getaccountaddress("")
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 10:04 (6 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187291
Default Alt Text
D1799.diff (1 KB)
Attached To
D1799: [qa] rearrange assertion in wallet-accounts
Event Timeline
Log In to Comment