From 31e217773d159f186d1b30e793254c96e5942aa1 Mon Sep 17 00:00:00 2001 From: renae-r Date: Thu, 27 Jun 2024 11:24:30 -0500 Subject: [PATCH] let the mock api sleep in --- tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index 9545820..300a11e 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -45,7 +45,7 @@ def mock_api() -> str: p = subprocess.Popen( ["uvicorn", "tests.mock_api:app", "--host", "127.0.0.1", "--port", "8989"] ) - time.sleep(1) # Give it enough time to warm up + time.sleep(3) # Give it enough time to warm up try: yield "http://127.0.0.1:8989" finally: