Skip to content

Commit fe33525

Browse files
author
Mehdi BEN ABDALLAH
committed
less verbose starting
1 parent 139eb71 commit fe33525

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/cosmosdb/testcontainers/cosmosdb/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def _configure(self) -> None:
130130
.with_env("AZURE_COSMOS_EMULATOR_KEY", str(self.key))
131131
)
132132

133-
@wait_container_is_ready(HTTPError, URLError, ServiceRequestError)
134133
def _wait_until_ready(self) -> Self:
135134
"""
136135
Waits until the CosmosDB Emulator image is ready to be used.
@@ -143,6 +142,7 @@ def _wait_until_ready(self) -> Self:
143142
)
144143
return self
145144

145+
@wait_container_is_ready(HTTPError, URLError)
146146
def _wait_for_url(self, url: str) -> Self:
147147
with urlopen(url, context=ssl._create_unverified_context()) as response:
148148
response.read()
@@ -152,6 +152,7 @@ def _wait_for_logs(self, *args, **kwargs) -> Self:
152152
wait_for_logs(*args, **kwargs)
153153
return self
154154

155+
@wait_container_is_ready(ServiceRequestError)
155156
def _wait_for_query_success(self, query: Callable[[SyncCosmosClient], None]) -> Self:
156157
with self.sync_client() as c:
157158
query(c)

0 commit comments

Comments
 (0)