mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-05-03 01:22:59 +00:00
respect the timeout
This commit is contained in:
parent
55690bf639
commit
a44c5d0f11
@ -303,7 +303,7 @@ def await_files_exist(paths, timeout=15, await_all=False):
|
|||||||
an Exception is raised
|
an Exception is raised
|
||||||
"""
|
"""
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
while time.time() - start_time < 15.0:
|
while time.time() - start_time < timeout:
|
||||||
print(" waiting for: {}".format(' '.join(paths)))
|
print(" waiting for: {}".format(' '.join(paths)))
|
||||||
found = [p for p in paths if exists(p)]
|
found = [p for p in paths if exists(p)]
|
||||||
print("found: {}".format(found))
|
print("found: {}".format(found))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user