Tidy timeout checking

This commit is contained in:
Kyle Altendorf 2018-10-05 16:46:24 -04:00
parent 5ecbb0acba
commit 4b36f9aa64
1 changed files with 1 additions and 2 deletions

View File

@ -1104,8 +1104,7 @@ class Testdir(object):
if ret is not None:
break
remaining = end - time.time()
if remaining <= 0:
if time.time() > end:
handle_timeout()
time.sleep(resolution)