tests: add sync_all to fix race condition in wallet groups test

This commit is contained in:
Karl-Johan Alm
2020-08-18 10:08:49 +09:00
parent c831e105c5
commit 72ae20fc14

View File

@@ -103,6 +103,7 @@ class WalletGroupTest(BitcoinTestFramework):
self.nodes[0].sendtoaddress(addr_aps, 1.0)
self.nodes[0].sendtoaddress(addr_aps, 1.0)
self.nodes[0].generate(1)
self.sync_all()
txid4 = self.nodes[3].sendtoaddress(self.nodes[0].getnewaddress(), 0.1)
tx4 = self.nodes[3].getrawtransaction(txid4, True)
# tx4 should have 2 inputs and 2 outputs although one output would