diff --git a/tests/test_cmd.py b/tests/test_cmd.py index ef088ccf3..2ac338dfb 100644 --- a/tests/test_cmd.py +++ b/tests/test_cmd.py @@ -59,10 +59,6 @@ async def handler(line): watch_pipe(p.stdout, handler), ) - await asyncio.sleep(5) - - if p.returncode is None: - p.terminate() - + await p.wait() await p.communicate() await g