Skip to content

Commit

Permalink
test: add coverage for unknown -blockfilterindex
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoerg committed May 23, 2022
1 parent 44037a2 commit 295ff61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/functional/p2p_blockfilters.py
Expand Up @@ -250,6 +250,11 @@ def run_test(self):
msg = "Error: Cannot set -peerblockfilters without -blockfilterindex."
self.nodes[0].assert_start_raises_init_error(expected_msg=msg)

self.log.info("Test unknown value to -blockfilterindex raises an error")
self.nodes[0].extra_args = ["-blockfilterindex=abc"]
msg = "Error: Unknown -blockfilterindex value abc."
self.nodes[0].assert_start_raises_init_error(expected_msg=msg)

self.log.info("Test -blockfilterindex with -reindex-chainstate raises an error")
self.nodes[0].assert_start_raises_init_error(
expected_msg='Error: -reindex-chainstate option is not compatible with -blockfilterindex. '
Expand Down

0 comments on commit 295ff61

Please sign in to comment.