We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcd1c45 commit f0ef7e3Copy full SHA for f0ef7e3
tests/utils/tracked_container.py
@@ -57,8 +57,8 @@ def get_logs(self) -> str:
57
58
def get_health(self) -> str:
59
assert self.container is not None
60
- inspect_results = self.docker_client.api.inspect_container(self.container.name)
61
- return inspect_results["State"]["Health"]["Status"] # type: ignore
+ self.container.reload()
+ return self.container.health # type: ignore
62
63
def exec_cmd(self, cmd: str, **kwargs: Any) -> str:
64
0 commit comments