提交 51b28339 编写于 作者: L Lukáš Doktor

avocado.core.remoter: Correct the timeout condition

We need to finish when the time.time() is greater than the timeout, not
lower.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 ea1f6221
......@@ -102,7 +102,7 @@ class Remote(object):
except fabric.network.NetworkError as details:
fabric_exception = details
timeout = end_time - time.time()
if time.time() < end_time:
if time.time() > end_time:
break
if fabric_result is None:
if fabric_exception is not None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册