Skip to content

Commit

Permalink
test: fix RPC coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonOdiwuor committed Feb 6, 2024
1 parent 9eeee7c commit a4498d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/functional/test_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,14 +807,21 @@ 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(
CACHE_NODE_ID,
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,
Expand Down

0 comments on commit a4498d3

Please sign in to comment.