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 7, 2024
1 parent 9eeee7c commit 6bd9b0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions test/functional/create_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
class CreateCache(BitcoinTestFramework):
# Test network and test nodes are not required:

def add_options(self, parser):
self.add_wallet_options(parser)

def set_test_params(self):
self.num_nodes = 0

Expand Down
2 changes: 1 addition & 1 deletion test/functional/test_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def _initialize_chain(self):
cache_node_dir,
chain=self.chain,
extra_conf=["bind=127.0.0.1"],
extra_args=['-disablewallet'],
extra_args=[],
rpchost=None,
timewait=self.rpc_timeout,
timeout_factor=self.options.timeout_factor,
Expand Down
2 changes: 1 addition & 1 deletion test/functional/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=
if len(test_list) > 1 and jobs > 1:
# Populate cache
try:
subprocess.check_output([sys.executable, tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir])
subprocess.check_output([sys.executable, tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir] + ["--descriptors"])
except subprocess.CalledProcessError as e:
sys.stdout.buffer.write(e.output)
raise
Expand Down

0 comments on commit 6bd9b0d

Please sign in to comment.