Skip to content

Commit

Permalink
[tests] Make wait_until timeout 60 seconds by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewbery committed May 9, 2017
1 parent 6a796b2 commit b0bfa23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/test_framework/mininode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,8 @@ def __repr__(self):

# Helper function
def wait_until(predicate, *, attempts=float('inf'), timeout=float('inf')):
if attempts == float('inf') and timeout == float('inf'):
timeout = 60
attempt = 0
elapsed = 0

Expand Down

0 comments on commit b0bfa23

Please sign in to comment.