From e7242e393f3dfc5f7cbce3b0d43d73c03dfefa6e Mon Sep 17 00:00:00 2001 From: Maurane GLAUDE Date: Tue, 6 Aug 2024 10:01:47 +0200 Subject: [PATCH] fix(tests.integration): fix integration tests --- tests/integration/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index d9a4b97..d89cf2f 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -52,6 +52,7 @@ def ping(host: str, port: int, timeout: float = 2) -> bool: def antares_web_server_fixture(antares_web_server_path: Path) -> t.Generator[subprocess.Popen, None, None]: """Fixture used to provide a running instance of the Antares web server.""" # Spawn the server process + assert antares_web_server_path.exists() server = subprocess.Popen( [str(antares_web_server_path)], stdout=subprocess.PIPE, @@ -78,7 +79,6 @@ def antares_web_server_fixture(antares_web_server_path: Path) -> t.Generator[sub time.sleep(0.1) else: raise RuntimeError("The server did not start in time.") - yield server finally: