Skip to content

Commit

Permalink
tests: fix failure to log error after all retries failed
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Jan 4, 2024
1 parent 8a4d62b commit b0723f9
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 b0723f9

Please sign in to comment.