Update tests/interop/daemon.py

Co-Authored-By: NIC Lin <twedusuck@gmail.com>
This commit is contained in:
Kevin Mai-Husan Chia 2019-09-04 20:33:50 +08:00 committed by GitHub
parent bd21b2f66f
commit 155f523c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ TIMEOUT_DURATION = 30
async def try_until_success(coro_func, timeout=TIMEOUT_DURATION): async def try_until_success(coro_func, timeout=TIMEOUT_DURATION):
""" """
Keep running ``coro_func`` until the time is out. Keep running ``coro_func`` until either it succeed or time is up.
All arguments of ``coro_func`` should be filled, i.e. it should be called without arguments. All arguments of ``coro_func`` should be filled, i.e. it should be called without arguments.
""" """
t_start = time.monotonic() t_start = time.monotonic()