From 213cc862edc440c99c6bd8dceda3c557cae05f12 Mon Sep 17 00:00:00 2001 From: Sanskar Jethi Date: Sat, 18 Dec 2021 23:36:36 +0530 Subject: [PATCH] fix tests --- integration_tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration_tests/conftest.py b/integration_tests/conftest.py index ce256c7ad..3e56f0279 100644 --- a/integration_tests/conftest.py +++ b/integration_tests/conftest.py @@ -7,12 +7,12 @@ @pytest.fixture def session(): - subprocess.call(["freeport", "5000"]) + subprocess.call(["yes | freeport 5000"], shell=True) os.environ["ROBYN_URL"] = "127.0.0.1" current_file_path = pathlib.Path(__file__).parent.resolve() base_routes = os.path.join(current_file_path, "./base_routes.py") process = subprocess.Popen(["python3", base_routes]) - time.sleep(1) + time.sleep(5) yield process.terminate() del os.environ["ROBYN_URL"]