diff --git a/test/functional/wallet_multiwallet.py b/test/functional/wallet_multiwallet.py index 6240126ccba..4f855ee0cf9 100755 --- a/test/functional/wallet_multiwallet.py +++ b/test/functional/wallet_multiwallet.py @@ -20,7 +20,6 @@ from test_framework.util import ( assert_equal, assert_raises_rpc_error, ensure_for, - get_rpc_proxy, ) got_loading_error = False @@ -328,7 +327,7 @@ class MultiWalletTest(BitcoinTestFramework): self.log.info("Concurrent wallet loading") threads = [] for _ in range(3): - n = node.cli if self.options.usecli else get_rpc_proxy(node.url, 1, timeout=600, coveragedir=node.coverage_dir) + n = node.create_new_rpc_connection() t = Thread(target=test_load_unload, args=(n, wallet_names[2])) t.start() threads.append(t)