[tests] Make wait_until timeout 60 seconds by default
This commit is contained in:
parent
6a796b2b53
commit
b0bfa233a1
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue