From 72ae20fc142457a200278cb2fedc5e32a3766b58 Mon Sep 17 00:00:00 2001 From: Karl-Johan Alm Date: Tue, 18 Aug 2020 10:08:49 +0900 Subject: [PATCH] tests: add sync_all to fix race condition in wallet groups test --- test/functional/wallet_groups.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/wallet_groups.py b/test/functional/wallet_groups.py index cfdc2d51e63..9b6230f6741 100755 --- a/test/functional/wallet_groups.py +++ b/test/functional/wallet_groups.py @@ -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