Skip to content

Commit

Permalink
don't need to reindex to disable in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PastaPastaPasta committed Sep 24, 2024
1 parent 884d659 commit 59761d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/functional/feature_addressindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def setup_network(self):
def run_test(self):
self.log.info("Test that settings can't be changed without -reindex...")
self.stop_node(1)
self.nodes[1].assert_start_raises_init_error(["-addressindex=0"], "You need to rebuild the database using -reindex to enable -addressindex", match=ErrorMatch.PARTIAL_REGEX)
self.start_node(1, ["-addressindex=0", "-reindex"])
self.start_node(1, ["-addressindex=0"])
self.connect_nodes(0, 1)
self.sync_all()
self.stop_node(1)
Expand Down
3 changes: 1 addition & 2 deletions test/functional/feature_spentindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def setup_network(self):
def run_test(self):
self.log.info("Test that settings can't be changed without -reindex...")
self.stop_node(1)
self.nodes[1].assert_start_raises_init_error(["-spentindex=0"], "You need to rebuild the database using -reindex to change -spentindex", match=ErrorMatch.PARTIAL_REGEX)
self.start_node(1, ["-spentindex=0", "-reindex"])
self.start_node(1, ["-spentindex=0"])
self.connect_nodes(0, 1)
self.sync_all()
self.stop_node(1)
Expand Down
3 changes: 1 addition & 2 deletions test/functional/feature_timestampindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def setup_network(self):
def run_test(self):
self.log.info("Test that settings can't be changed without -reindex...")
self.stop_node(1)
self.nodes[1].assert_start_raises_init_error(["-timestampindex=0"], "You need to rebuild the database using -reindex to change -timestampindex", match=ErrorMatch.PARTIAL_REGEX)
self.start_node(1, ["-timestampindex=0", "-reindex"])
self.start_node(1, ["-timestampindex=0")
self.connect_nodes(0, 1)
self.sync_all()
self.stop_node(1)
Expand Down

0 comments on commit 59761d5

Please sign in to comment.