mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
tests - fix ui/draft when DISABLE_DEFAULT_SERVER=yes
This commit is contained in:
parent
faad5863aa
commit
edcdaeb9b4
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue