From 9e544277ca99d8649c1530c18e78874df3c0758a Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Tue, 3 Oct 2023 00:55:10 +0200 Subject: [PATCH] test: Increase timeout tolerance of feature_assumeutxo co-authored-by: Andrew Chow --- test/functional/feature_assumeutxo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/functional/feature_assumeutxo.py b/test/functional/feature_assumeutxo.py index be1aa1899380ad..64ab7f4b747ecc 100755 --- a/test/functional/feature_assumeutxo.py +++ b/test/functional/feature_assumeutxo.py @@ -81,7 +81,7 @@ def run_test(self): self.sync_blocks() def no_sync(): - pass + self.no_op # Generate a series of blocks that `n0` will have in the snapshot, # but that n1 doesn't yet see. In order for the snapshot to activate, @@ -156,12 +156,12 @@ def no_sync(): self.connect_nodes(0, 1) self.log.info(f"Ensuring snapshot chain syncs to tip. ({FINAL_HEIGHT})") - wait_until_helper(lambda: n1.getchainstates()['snapshot']['blocks'] == FINAL_HEIGHT) + wait_until_helper(lambda: n1.getchainstates()['snapshot']['blocks'] == FINAL_HEIGHT, timeout_factor=2) self.sync_blocks(nodes=(n0, n1)) self.log.info("Ensuring background validation completes") # N.B.: the `snapshot` key disappears once the background validation is complete. - wait_until_helper(lambda: not n1.getchainstates().get('snapshot')) + wait_until_helper(lambda: not n1.getchainstates().get('snapshot'), timeout_factor=2) # Ensure indexes have synced. completed_idx_state = { @@ -203,11 +203,11 @@ def no_sync(): assert_equal(monitor['snapshot']['snapshot_blockhash'], dump_output['base_hash']) self.connect_nodes(0, 2) - wait_until_helper(lambda: n2.getchainstates()['snapshot']['blocks'] == FINAL_HEIGHT) + wait_until_helper(lambda: n2.getchainstates()['snapshot']['blocks'] == FINAL_HEIGHT, timeout_factor=2) self.sync_blocks() self.log.info("Ensuring background validation completes") - wait_until_helper(lambda: not n2.getchainstates().get('snapshot')) + wait_until_helper(lambda: not n2.getchainstates().get('snapshot'), timeout_factor=2) completed_idx_state = { 'basic block filter index': COMPLETE_IDX,