Skip to content

Commit

Permalink
Merge pull request #441 from consideRatio/pr/fix-logging-failure
Browse files Browse the repository at this point in the history
tests: fix failure to log error after all retries failed
  • Loading branch information
consideRatio authored Jan 4, 2024
2 parents 98eff01 + b0723f9 commit a65437a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def wait_until_urlopen(url, **kwargs):
urlopen(url, **kwargs)
break
except URLError:
retries -= 1
if not retries:
print(
f"{url} not ready, aborting",
Expand All @@ -109,7 +110,6 @@ def wait_until_urlopen(url, **kwargs):
f"{url} not ready, will try again in 0.5s [{retries} retries]",
flush=True,
)
retries -= 1
time.sleep(0.5)


Expand Down

0 comments on commit a65437a

Please sign in to comment.