Full integration test coverage for the vendor API

This commit is contained in:
Donkie
2023-05-18 17:53:02 +02:00
parent 01464b5dea
commit 89cff893aa
3 changed files with 135 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ def _wait_for_server(): # noqa: ANN202
start_time = time.time()
while True:
try:
response = httpx.get("http://spoolman:8000")
response = httpx.get("http://spoolman:8000", timeout=1)
response.raise_for_status()
except httpx.HTTPError:
if time.time() - start_time > TIMEOUT: