Skip to content

Commit

Permalink
someone added flake to builds without fixing them.. shame (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
kensipe authored Mar 2, 2018
1 parent 891ce9e commit b4a9cc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/system/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ def ignore_exception(exc):
return isinstance(exc, Exception)


@retry(wait_exponential_multiplier=1000, wait_exponential_max=5*60*1000, retry_on_exception=ignore_exception) # 5 minutes
@retry(wait_exponential_multiplier=1000, wait_exponential_max=5*60*1000, retry_on_exception=ignore_exception) # 5 mins
def wait_for_metronome():
""" Waits for the Metronome API url to be available for a given timeout. """
url = metronome_api_url()
try:
response = http.get(url)
assert response.status_code == 200, f"Expecting Metronome service to be up but it did not get healthy after 5 minutes. Last response: {response.content}"
assert response.status_code == 200, f"Expecting Metronome service to be up but it did not get healthy after 5 minutes. Last response: {response.content}" # noqa
except Exception as e:
assert False, f"Expecting Metronome service to be up but it did not get healthy after 5 minutes. Last exception: {e}"
assert False, f"Expecting Metronome service to be up but it did not get healthy after 5 minutes. Last exception: {e}" # noqa


def metronome_api_url():
Expand Down

0 comments on commit b4a9cc1

Please sign in to comment.