Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Leclerc <[email protected]>
  • Loading branch information
sylvlecl committed Oct 11, 2024
1 parent 07a6307 commit 3457553
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration/test_run_server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import httpx # type: ignore
import subprocess
import socket
import subprocess
import time

import requests # type: ignore

SPAWN_TIMEOUT = 10
"""Timeout in seconds to wait for the server process to start."""

Expand Down Expand Up @@ -67,7 +68,7 @@ def test_server_health(antares_web_server_paths):
else:
raise RuntimeError("The server did not start in time.")

res = httpx.get("http://localhost:8080/health", timeout=0.25)
res = requests.get("http://localhost:8080/health", timeout=0.25)
assert res.status_code == 200, res.json()
assert res.json() == {"status": "available"}

Expand Down

0 comments on commit 3457553

Please sign in to comment.