Skip to content

Commit 7b2b06d

Browse files
committed
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.
1 parent 6e3fc74 commit 7b2b06d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/functional/wallet_importdescriptors.py

+1
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def run_test(self):
331331
assert_equal(wmulti_priv.getwalletinfo()['keypoolsize'], 1000)
332332
txid = w0.sendtoaddress(addr, 10)
333333
self.nodes[0].generate(6)
334+
self.sync_all()
334335
send_txid = wmulti_priv.sendtoaddress(w0.getnewaddress(), 8)
335336
decoded = wmulti_priv.decoderawtransaction(wmulti_priv.gettransaction(send_txid)['hex'])
336337
assert_equal(len(decoded['vin'][0]['txinwitness']), 4)

0 commit comments

Comments
 (0)