Skip to content

Commit f4ba833

Browse files
improvement
1 parent 973a524 commit f4ba833

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/pytest-simcore/src/pytest_simcore/helpers/playwright.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,13 @@ def __call__(self, message: str) -> bool:
245245
url = f"https://{self.node_id}.services.{self.get_partial_product_url()}"
246246
response = httpx.get(url, timeout=10)
247247
self.logger.info(
248-
"Querying the service endpoint from the E2E test. Response: %s, response"
248+
"Querying the service endpoint from the E2E test. Url: %s Response: %s",
249+
url,
250+
response,
249251
)
250-
if response.status_code == 200:
252+
if response.status_code <= 401:
253+
# NOTE: If the response status is less than 400, it means that the backend is ready (There are some services that respond with a 3XX)
254+
# MD: for now I have included 401 - as this also means that backend is ready
251255
if self.got_expected_node_progress_types():
252256
self.logger.warning(
253257
"⚠️ Progress bar didn't receive 100 percent but service is already running: %s ⚠️", # https://github.com/ITISFoundation/osparc-simcore/issues/6449

0 commit comments

Comments
 (0)