diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-02-18 20:43:06 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-02-18 20:43:35 +0100 |
commit | fab6995629e391d03d28ea81b89c94d9e92172f6 (patch) | |
tree | fbe00941e83c240df857ca65bc932d8a34ba9220 /test | |
parent | fae8f35df8a2158505f8333d546bc7a13b15e7a9 (diff) |
test: Make test actually test something
The context manager was not even created, so previously it did not check the debug log
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/feature_blockfilterindex_prune.py | 4 |
1 files changed, 2 insertions, 2 deletions
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") |