tests - fix ui/draft when DISABLE_DEFAULT_SERVER=yes

This commit is contained in:
florian 2024-04-19 12:21:25 +02:00
parent faad5863aa
commit edcdaeb9b4
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500

View file

@ -395,12 +395,12 @@ try:
retry += 1
with suppress(RequestException):
req = get("http://app2.example.com")
if req.status_code < 400 and retry >= 5:
if req.status_code < 400 and retry >= 5 and "Nothing to see here..." not in req.text:
log_error("The service is still working, exiting ...")
log_error(f"Status code = {str(req.status_code)}")
log_error(f"Content = {req.text}")
exit(1)
if req.status_code < 400 and retry < 5:
if req.status_code < 400 and retry < 5 and "Nothing to see here..." not in req.text:
log_error("The service is still working, retry in 5 seconds ...")
sleep(5)