From a4498d3addfb1923b9a83d9a8a4b84eb8cdb6eeb Mon Sep 17 00:00:00 2001 From: Brandon Odiwuor Date: Mon, 5 Feb 2024 21:10:33 +0300 Subject: [PATCH] test: fix RPC coverage check --- test/functional/test_framework/test_framework.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index d8ae20981da672..a8a178c3ab57b9 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -807,6 +807,13 @@ def _initialize_chain(self): if not os.path.isdir(cache_node_dir): self.log.debug("Creating cache directory {}".format(cache_node_dir)) + # Do not -disablewallet when in coverage mode to enable wallet RPCs to be checked + if self.options.coveragedir is not None: + extra_args = [] + self.options.descriptors = True # since `None` will -disablewallet in TestNode(...) + else: + extra_args = ['-disablewallet'], + initialize_datadir(self.options.cachedir, CACHE_NODE_ID, self.chain, self.disable_autoconnect) self.nodes.append( TestNode( @@ -814,7 +821,7 @@ def _initialize_chain(self): cache_node_dir, chain=self.chain, extra_conf=["bind=127.0.0.1"], - extra_args=['-disablewallet'], + extra_args=extra_args, rpchost=None, timewait=self.rpc_timeout, timeout_factor=self.options.timeout_factor,