[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
1 changed files with 2 additions and 0 deletions

View File

@ -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