aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_importdescriptors.py
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-04-28 12:08:33 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-04-28 12:08:33 -0400
commit7b2b06dfe3061b5ab4a283245930e2f7773eb3ef (patch)
tree1882511d1852d4f6513694d90077948080dbe75f /test/functional/wallet_importdescriptors.py
parent6e3fc7492a7d5e58c0ada22617388b6487410f82 (diff)
downloadbitcoin-7b2b06dfe3061b5ab4a283245930e2f7773eb3ef.tar.xz
tests: Add missing sync_all to wallet_importdescriptors.py
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.
Diffstat (limited to 'test/functional/wallet_importdescriptors.py')
-rwxr-xr-xtest/functional/wallet_importdescriptors.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/wallet_importdescriptors.py b/test/functional/wallet_importdescriptors.py
index 55995152aa..fc5d653a91 100755
--- a/test/functional/wallet_importdescriptors.py
+++ b/test/functional/wallet_importdescriptors.py
@@ -331,6 +331,7 @@ class ImportDescriptorsTest(BitcoinTestFramework):
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)