Skip to content

Commit

Permalink
made itests catch MarathonHttpError
Browse files Browse the repository at this point in the history
  • Loading branch information
mjksmith committed Feb 13, 2016
1 parent 5409dbb commit 2778379
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion paasta_itests/steps/setup_marathon_job_steps.py
Expand Up @@ -17,6 +17,7 @@
import mock
from behave import then
from behave import when
from marathon.exceptions import MarathonHttpError

from paasta_tools import marathon_tools
from paasta_tools import setup_marathon_job
Expand Down Expand Up @@ -104,7 +105,10 @@ def change_number_of_context_instances(context, number):
@when(u'we run setup_marathon_job until the instance count is {number}')
def run_setup_marathon_job(context, number):
while context.marathon_client.get_app(fake_appid).instances != int(number):
create_complete_app(context)
try:
create_complete_app(context)
except MarathonHttpError:
continue
time.sleep(1)


Expand Down

0 comments on commit 2778379

Please sign in to comment.