refactor: Use create_new_rpc_connection in wallet_multiwallet.py

This commit is contained in:
MarcoFalke
2026-05-20 14:25:42 +02:00
parent fa3ae6c7d3
commit fa8f25118c

View File

@@ -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)