mirror of
https://github.com/docker/compose.git
synced 2025-07-25 22:54:54 +02:00
Merge pull request #2468 from dnephin/increase_timeout_in_tests
Increase timeout in tests
This commit is contained in:
commit
50dcb1d7e7
@ -43,7 +43,7 @@ def wait_on_process(proc, returncode=0):
|
|||||||
return ProcessResult(stdout.decode('utf-8'), stderr.decode('utf-8'))
|
return ProcessResult(stdout.decode('utf-8'), stderr.decode('utf-8'))
|
||||||
|
|
||||||
|
|
||||||
def wait_on_condition(condition, delay=0.1, timeout=5):
|
def wait_on_condition(condition, delay=0.1, timeout=20):
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
while not condition():
|
while not condition():
|
||||||
if time.time() - start_time > timeout:
|
if time.time() - start_time > timeout:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user