mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-15 17:21:09 +02:00
refactor: Use create_new_rpc_connection in wallet_multiwallet.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user