Skip to content

Commit

Permalink
Merge bitcoin#21084: test: fix timeout decrease in feature_assumevalid
Browse files Browse the repository at this point in the history
0d39b58 test: fix timeout decrease in feature_assumevalid (Bruno Garcia)

Pull request description:

  This PR fixes the timeout decrease in assert_blockchain_height function.

ACKs for top commit:
  practicalswift:
    cr ACK 0d39b58: patch looks correct
  theStack:
    ACK 0d39b58 ⏲️

Tree-SHA512: ae3c83420b4de4ad41f1b20b6e77c3a26a8c5ac4fb136b2645fde119545a413c61312f76a16473141774bc955d30ac4fc86e5ca6cf729f8978a17d0dab520feb
  • Loading branch information
MarcoFalke authored and PastaPastaPasta committed Jul 16, 2021
1 parent f9ae80e commit 12cb360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/feature_assumevalid.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def assert_blockchain_height(self, node, height):
last_height = current_height
if timeout < 0:
assert False, "blockchain too short after timeout: %d" % current_height
timeout - 0.25
timeout -= 0.25
continue
elif current_height > height:
assert False, "blockchain too long: %d" % current_height
Expand Down

0 comments on commit 12cb360

Please sign in to comment.