[tests] Make wait_until timeout 60 seconds by default

This commit is contained in:
John Newbery 2017-05-09 08:54:58 -04:00
parent 6a796b2b53
commit b0bfa233a1

View file

@ -1358,6 +1358,8 @@ class msg_reject(object):
# Helper function # Helper function
def wait_until(predicate, *, attempts=float('inf'), timeout=float('inf')): def wait_until(predicate, *, attempts=float('inf'), timeout=float('inf')):
if attempts == float('inf') and timeout == float('inf'):
timeout = 60
attempt = 0 attempt = 0
elapsed = 0 elapsed = 0