diff --git a/tests/cli/test_install.py b/tests/cli/test_install.py index b42a7f7e9..1d55d9d94 100644 --- a/tests/cli/test_install.py +++ b/tests/cli/test_install.py @@ -3,6 +3,7 @@ from sotopia.cli import app import subprocess +import time runner = CliRunner() @@ -13,6 +14,7 @@ def test_install() -> None: ["install", "--no-use-docker", "--load-database", "--overwrite-existing-data"], ) assert result.exit_code == 0 + time.sleep(1) if platform.system() == "Darwin": subprocess.run("redis-cli shutdown", shell=True, check=True) @@ -25,6 +27,7 @@ def test_install() -> None: result = runner.invoke(app, ["install"], input="No\nNo\n") assert result.exit_code == 0 + time.sleep(1) if platform.system() == "Darwin": subprocess.run("redis-cli shutdown", shell=True, check=True) elif platform.system() == "Linux":