self.sync_all(), not time.sleep(4)

This commit is contained in:
Larry Ruane 2020-07-01 10:28:15 -06:00
parent 73fae6bf0a
commit 5b7fed5bbf
1 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class WalletDBFlush (BitcoinTestFramework):
"-mineraddress=%s" % zaddr,
])
self.nodes[0].generate(1)
time.sleep(4)
self.sync_all()
self.nodes[0].stop()
bitcoind_processes[0].wait()
@ -71,7 +71,7 @@ class WalletDBFlush (BitcoinTestFramework):
assert_equal(self.nodes[0].z_getbalance(zaddr, 0), 5)
time.sleep(sleeptime)
self.nodes[0].generate(1)
time.sleep(4)
self.sync_all()
self.nodes[0].stop()
bitcoind_processes[0].wait()
@ -80,7 +80,7 @@ class WalletDBFlush (BitcoinTestFramework):
"-mineraddress=%s" % zaddr,
])
self.nodes[0].generate(1)
time.sleep(4)
self.sync_all()
self.nodes[0].stop()
if __name__ == '__main__':