We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0303d47 commit 4de2f6cCopy full SHA for 4de2f6c
modules/vault/testcontainers/vault/__init__.py
@@ -12,6 +12,7 @@
12
# under the License.
13
14
from http.client import HTTPException
15
+from urllib.error import URLError
16
from urllib.request import urlopen
17
18
from testcontainers.core.container import DockerContainer
@@ -61,7 +62,7 @@ def get_connection_url(self) -> str:
61
62
exposed_port = self.get_exposed_port(self.port)
63
return f"http://{host_ip}:{exposed_port}"
64
- @wait_container_is_ready(HTTPException)
65
+ @wait_container_is_ready(HTTPException, URLError)
66
def _healthcheck(self) -> None:
67
url = f"{self.get_connection_url()}/v1/sys/health"
68
with urlopen(url) as res:
0 commit comments