Update RPC tests to account for decreased block interval

This commit is contained in:
Jack Grigg
2016-06-07 21:01:33 +12:00
parent a59c352cfd
commit 196cf25d5b
11 changed files with 57 additions and 56 deletions

View File

@@ -110,9 +110,9 @@ class WalletBackupTest(BitcoinTestFramework):
self.nodes[3].generate(100)
sync_blocks(self.nodes)
assert_equal(self.nodes[0].getbalance(), 40)
assert_equal(self.nodes[1].getbalance(), 40)
assert_equal(self.nodes[2].getbalance(), 40)
assert_equal(self.nodes[0].getbalance(), 10)
assert_equal(self.nodes[1].getbalance(), 10)
assert_equal(self.nodes[2].getbalance(), 10)
assert_equal(self.nodes[3].getbalance(), 0)
logging.info("Creating transactions")
@@ -144,8 +144,8 @@ class WalletBackupTest(BitcoinTestFramework):
total = balance0 + balance1 + balance2 + balance3
# At this point, there are 214 blocks (103 for setup, then 10 rounds, then 101.)
# 114 are mature, so the sum of all wallets should be 114 * 40 = 4560.
assert_equal(total, 4560)
# 114 are mature, so the sum of all wallets should be 114 * 10 = 1140.
assert_equal(total, 1140)
##
# Test restoring spender wallets from backups