From 201b9a02fd9885ce40999e383cf75b8354d6ef26 Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Fri, 28 Oct 2022 15:24:22 -0400 Subject: [PATCH] test: fix intermittent failure in feature_index_prune.py After syncing the blocks, we didn't check that the indexes have caught up to the tip before manually pruning. This could lead to prune blockers lower thatn the expected height. --- test/functional/feature_index_prune.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/feature_index_prune.py b/test/functional/feature_index_prune.py index bc85e43a576..4b7a50c1c77 100755 --- a/test/functional/feature_index_prune.py +++ b/test/functional/feature_index_prune.py @@ -138,6 +138,7 @@ class FeatureIndexPruneTest(BitcoinTestFramework): self.connect_nodes(i, 3) self.sync_blocks(timeout=300) + self.sync_index(height=2500) for node in self.nodes[:2]: with node.assert_debug_log(['limited pruning to height 2489']):