Skip to content

Commit

Permalink
test: Increase timeout tolerance of feature_assumeutxo
Browse files Browse the repository at this point in the history
co-authored-by: Andrew Chow <[email protected]>
  • Loading branch information
fjahr and achow101 committed Oct 2, 2023
1 parent cb7e17d commit 9e54427
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/functional/feature_assumeutxo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9e54427

Please sign in to comment.