Skip to content

Commit

Permalink
fix(tests.integration): fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maugde committed Aug 6, 2024
1 parent 7d64edc commit e7242e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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:
Expand Down

0 comments on commit e7242e3

Please sign in to comment.