mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Add flake8-bugbear
This commit is contained in:
@ -32,7 +32,9 @@ async def try_until_success(coro_func, timeout=TIMEOUT_DURATION):
|
||||
break
|
||||
if (time.monotonic() - t_start) >= timeout:
|
||||
# timeout
|
||||
assert False, f"{coro_func} is still failing after `{timeout}` seconds"
|
||||
raise AssertionError(
|
||||
f"{coro_func} is still failing after `{timeout}` seconds"
|
||||
)
|
||||
await asyncio.sleep(0.01)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user