##// END OF EJS Templates
testing: do not stop waiting if timeout is 0 (issue6541)...
Cédric Krier -
r48457:1bad89a6 default
parent child Browse files
Show More
@@ -27,7 +27,7 b' def wait_file(path, timeout=10):'
27 timeout *= _timeout_factor()
27 timeout *= _timeout_factor()
28 start = time.time()
28 start = time.time()
29 while not os.path.exists(path):
29 while not os.path.exists(path):
30 if time.time() - start > timeout:
30 if timeout and time.time() - start > timeout:
31 raise RuntimeError(b"timed out waiting for file: %s" % path)
31 raise RuntimeError(b"timed out waiting for file: %s" % path)
32 time.sleep(0.01)
32 time.sleep(0.01)
33
33
General Comments 0
You need to be logged in to leave comments. Login now