diff --git a/unit_test.py b/unit_test.py index c4bd22d..35edac8 100644 --- a/unit_test.py +++ b/unit_test.py @@ -10,21 +10,21 @@ def ban_user(user_id: str): print("Error banning user " + user_id, "|", str(e), type(e).__name__) -async def one(nb: int) -> int: +async def one() -> int: return 1 -async def two(nb: int) -> int: +async def two() -> int: await asyncio.sleep(2) return 2 -async def three(nb: int) -> int: +async def three() -> int: await asyncio.sleep(3) return 3 coroutines = [ - two(1),one(0),three(2), - - + one(), + two(), + three() ] async def main() -> None: results = await asyncio.gather(*coroutines)