Skip to content

Commit

Permalink
tests: Add missing sync_all to wallet_importdescriptors.py
Browse files Browse the repository at this point in the history
node1 will sometimes do sendtoaddress before it has received a funding
transaction which will cause the test to fail. sync_all to ensure it
gets the transaction first.
  • Loading branch information
achow101 committed Apr 28, 2020
1 parent 6e3fc74 commit 7b2b06d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/wallet_importdescriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ def run_test(self):
assert_equal(wmulti_priv.getwalletinfo()['keypoolsize'], 1000)
txid = w0.sendtoaddress(addr, 10)
self.nodes[0].generate(6)
self.sync_all()
send_txid = wmulti_priv.sendtoaddress(w0.getnewaddress(), 8)
decoded = wmulti_priv.decoderawtransaction(wmulti_priv.gettransaction(send_txid)['hex'])
assert_equal(len(decoded['vin'][0]['txinwitness']), 4)
Expand Down

0 comments on commit 7b2b06d

Please sign in to comment.