mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
tests - add more logs on ui/draft test
This commit is contained in:
parent
316269bff5
commit
6181bd035d
1 changed files with 5 additions and 2 deletions
|
|
@ -394,10 +394,13 @@ try:
|
|||
for x in range(5):
|
||||
retry += 1
|
||||
with suppress(RequestException):
|
||||
if get("http://app2.example.com").status_code < 400 and retry >= 5:
|
||||
req = get("http://app2.example.com")
|
||||
if req.status_code < 400 and retry >= 5:
|
||||
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 get("http://app2.example.com").status_code < 400 and retry < 5:
|
||||
if req.status_code < 400 and retry < 5:
|
||||
log_error("The service is still working, retry in 5 seconds ...")
|
||||
sleep(5)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue