Skip to content

Commit

Permalink
ci: whitelist some RPCs on the functional test coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Dec 16, 2020
1 parent 3ea73ce commit 6a1129e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/functional/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,9 @@ def _get_uncovered_rpc_commands(self):
all_cmds = set()
# Consider RPC generate covered, because it is overloaded in
# test_framework/test_node.py and not seen by the coverage check.
covered_cmds = set({'generate'})
# ELEMENTS: also consider `getdifficulty` and `getnetworkhashps` covered, which should be removed as they are meaningless on a signed-block chain
# ELEMENTS: also consider `pruneblockchain` covered since its test is temporarily disabled
covered_cmds = set({'generate', 'getdifficulty', 'getnetworkhashps', 'pruneblockchain'})

if not os.path.isfile(coverage_ref_filename):
raise RuntimeError("No coverage reference found")
Expand Down

0 comments on commit 6a1129e

Please sign in to comment.