Skip to content

Commit

Permalink
fix: milvus healthcheck: use correct requests errors (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderankin authored Jan 21, 2025
1 parent ace2a7d commit 78b137c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/milvus/testcontainers/milvus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _get_healthcheck_url(self) -> str:
port = self.get_exposed_port(self.healthcheck_port)
return f"http://{ip}:{port}"

@wait_container_is_ready(requests.exceptions.HTTPError)
@wait_container_is_ready(requests.exceptions.HTTPError, requests.exceptions.ConnectionError)
def _healthcheck(self) -> None:
healthcheck_url = self._get_healthcheck_url()
response = requests.get(f"{healthcheck_url}/healthz", timeout=1)
Expand Down

0 comments on commit 78b137c

Please sign in to comment.