test: Make test actually test something

The context manager was not even created, so previously it did not check the debug log
This commit is contained in:
MarcoFalke 2021-02-18 20:43:06 +01:00
parent fae8f35df8
commit fab6995629
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -39,8 +39,8 @@ class FeatureBlockfilterindexPruneTest(BitcoinTestFramework):
assert_greater_than(pruneheight_new, pruneheight) assert_greater_than(pruneheight_new, pruneheight)
self.stop_node(1) self.stop_node(1)
self.log.info("make sure we get an init error when starting the node again with block filters") self.log.info("make sure we get an init error when starting the node again with block filters")
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)"]):
self.nodes[1].assert_start_raises_init_error(extra_args=self.extra_args[1]) self.nodes[1].assert_start_raises_init_error(extra_args=self.extra_args[1])
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)"])
self.log.info("make sure the node starts again with the -reindex arg") self.log.info("make sure the node starts again with the -reindex arg")
reindex_args = self.extra_args[1] reindex_args = self.extra_args[1]
reindex_args.append("-reindex") reindex_args.append("-reindex")