From fab6995629e391d03d28ea81b89c94d9e92172f6 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 18 Feb 2021 20:43:06 +0100 Subject: test: Make test actually test something The context manager was not even created, so previously it did not check the debug log --- test/functional/feature_blockfilterindex_prune.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/functional/feature_blockfilterindex_prune.py b/test/functional/feature_blockfilterindex_prune.py index d1cc20497d..369250cfd9 100755 --- a/test/functional/feature_blockfilterindex_prune.py +++ b/test/functional/feature_blockfilterindex_prune.py @@ -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") -- cgit v1.2.3