mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
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:
parent
fae8f35df8
commit
fab6995629
@ -39,8 +39,8 @@ class FeatureBlockfilterindexPruneTest(BitcoinTestFramework):
|
||||
assert_greater_than(pruneheight_new, pruneheight)
|
||||
self.stop_node(1)
|
||||
self.log.info("make sure we get an init error when starting the node again with block filters")
|
||||
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)"])
|
||||
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.log.info("make sure the node starts again with the -reindex arg")
|
||||
reindex_args = self.extra_args[1]
|
||||
reindex_args.append("-reindex")
|
||||
|
Loading…
Reference in New Issue
Block a user