diff options
author | Seleme Topuz <seleme94@hotmail.com> | 2020-08-17 17:50:47 +0200 |
---|---|---|
committer | Seleme Topuz <seleme94@hotmail.com> | 2020-08-26 18:01:59 +0200 |
commit | 1343c86c7cc1fc896696b3ed87c12039e4ef3a0c (patch) | |
tree | 0e98164b74d0549a90de162226c36b677b7e8846 /test/functional/wallet_zapwallettxes.py | |
parent | 93ab136a33e46080c8aa02d59fb7c2a8d03a3387 (diff) | |
download | bitcoin-1343c86c7cc1fc896696b3ed87c12039e4ef3a0c.tar.xz |
test: Update wait_until usage in tests not to use the one from utils
Replace "wait_until()" usage from utils, with the ones from BitcoinTestFramework and P2PInterface.
closes #19080
Diffstat (limited to 'test/functional/wallet_zapwallettxes.py')
-rwxr-xr-x | test/functional/wallet_zapwallettxes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/wallet_zapwallettxes.py b/test/functional/wallet_zapwallettxes.py index 7f1cdbd20b..1287092cac 100755 --- a/test/functional/wallet_zapwallettxes.py +++ b/test/functional/wallet_zapwallettxes.py @@ -18,9 +18,9 @@ from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, assert_raises_rpc_error, - wait_until, ) + class ZapWalletTXesTest (BitcoinTestFramework): def set_test_params(self): self.setup_clean_chain = True @@ -59,7 +59,7 @@ class ZapWalletTXesTest (BitcoinTestFramework): # transaction is zapped from the wallet, but is re-added when the mempool is reloaded. self.restart_node(0, ["-persistmempool=1", "-zapwallettxes=2"]) - wait_until(lambda: self.nodes[0].getmempoolinfo()['size'] == 1, timeout=3) + self.wait_until(lambda: self.nodes[0].getmempoolinfo()['size'] == 1, timeout=3) self.nodes[0].syncwithvalidationinterfacequeue() # Flush mempool to wallet assert_equal(self.nodes[0].gettransaction(txid1)['txid'], txid1) |