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,