Skip to content

Commit fab6995

Browse files
author
MarcoFalke
committed
test: Make test actually test something
The context manager was not even created, so previously it did not check the debug log
1 parent fae8f35 commit fab6995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/feature_blockfilterindex_prune.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def run_test(self):
3939
assert_greater_than(pruneheight_new, pruneheight)
4040
self.stop_node(1)
4141
self.log.info("make sure we get an init error when starting the node again with block filters")
42-
self.nodes[1].assert_start_raises_init_error(extra_args=self.extra_args[1])
43-
self.nodes[1].assert_debug_log(["basic block filter index best block of the index goes beyond pruned data. Please disable the index or reindex (which will download the whole blockchain again)"])
42+
with self.nodes[1].assert_debug_log(["basic block filter index best block of the index goes beyond pruned data. Please disable the index or reindex (which will download the whole blockchain again)"]):
43+
self.nodes[1].assert_start_raises_init_error(extra_args=self.extra_args[1])
4444
self.log.info("make sure the node starts again with the -reindex arg")
4545
reindex_args = self.extra_args[1]
4646
reindex_args.append("-reindex")

0 commit comments

Comments
 (0)