Skip to content

Commit fa330ec

Browse files
author
MarcoFalke
committed
test: Remove confusing and broken use of wait_until global
1 parent fa6583c commit fa330ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/functional/wallet_basic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
assert_fee_amount,
1313
assert_raises_rpc_error,
1414
connect_nodes,
15-
wait_until,
1615
)
1716
from test_framework.wallet_util import test_address
1817

@@ -540,7 +539,7 @@ def run_test(self):
540539
self.start_node(2, [m, "-limitancestorcount=" + str(chainlimit)])
541540
if m == '-reindex':
542541
# reindex will leave rpc warm up "early"; Wait for it to finish
543-
wait_until(lambda: [block_count] * 3 == [self.nodes[i].getblockcount() for i in range(3)])
542+
self.wait_until(lambda: [block_count] * 3 == [self.nodes[i].getblockcount() for i in range(3)])
544543
assert_equal(balance_nodes, [self.nodes[i].getbalance() for i in range(3)])
545544

546545
# Exercise listsinceblock with the last two blocks
@@ -589,7 +588,7 @@ def run_test(self):
589588
self.start_node(0, extra_args=extra_args)
590589

591590
# wait until the wallet has submitted all transactions to the mempool
592-
wait_until(lambda: len(self.nodes[0].getrawmempool()) == chainlimit * 2)
591+
self.wait_until(lambda: len(self.nodes[0].getrawmempool()) == chainlimit * 2)
593592

594593
node0_balance = self.nodes[0].getbalance()
595594
# With walletrejectlongchains we will not create the tx and store it in our wallet.

0 commit comments

Comments
 (0)