Browse Source

[tests] Make wait_until timeout 60 seconds by default

0.15
John Newbery 8 years ago
parent
commit
b0bfa233a1
  1. 2
      test/functional/test_framework/mininode.py

2
test/functional/test_framework/mininode.py

@ -1358,6 +1358,8 @@ class msg_reject(object): @@ -1358,6 +1358,8 @@ class msg_reject(object):
# 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

Loading…
Cancel
Save