Skip to content

Commit 56b018c

Browse files
fjahrpromag
andcommitted
test: Fix flaky wallet_basic test
Co-authored-by: João Barbosa <[email protected]>
1 parent 23d3ae7 commit 56b018c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/wallet_basic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,9 @@ def run_test(self):
596596
# wait until the wallet has submitted all transactions to the mempool
597597
self.wait_until(lambda: len(self.nodes[0].getrawmempool()) == chainlimit * 2)
598598

599+
# Prevent potential race condition when calling wallet RPCs right after restart
600+
self.nodes[0].syncwithvalidationinterfacequeue()
601+
599602
node0_balance = self.nodes[0].getbalance()
600603
# With walletrejectlongchains we will not create the tx and store it in our wallet.
601604
assert_raises_rpc_error(-6, "Transaction has too long of a mempool chain", self.nodes[0].sendtoaddress, sending_addr, node0_balance - Decimal('0.01'))

0 commit comments

Comments
 (0)