Skip to content

Commit

Permalink
wait longer for startup..
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseshieh committed Dec 2, 2021
1 parent 4d21ff7 commit 4a6fdb8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions e2e/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def test_mix():
logging.info('Completed Deploy.')
start_time = timeit.default_timer()
url = 'https://%s.gigalixirapp.com/' % app_name
for i in range(30):
for i in range(60):
try:
logging.info('Attempt: %s/30: Checking %s' % (i, url))
logging.info('Attempt: %s/60: Checking %s' % (i, url))
r = requests.get(url)
if r.status_code != 200:
# wait 5 seconds
Expand Down Expand Up @@ -185,9 +185,9 @@ def test_ruby():
logging.info('Completed Deploy.')
start_time = timeit.default_timer()
url = 'https://%s.gigalixirapp.com/' % app_name
for i in range(30):
for i in range(60):
try:
logging.info('Attempt: %s/30: Checking %s' % (i, url))
logging.info('Attempt: %s/60: Checking %s' % (i, url))
r = requests.get(url)
if r.status_code != 200:
# wait 5 seconds
Expand Down Expand Up @@ -253,9 +253,9 @@ def __test_deploy_and_upgrade(cloud, region, branch="master"):
logging.info('Completed Deploy.')
start_time = timeit.default_timer()
url = 'https://%s.gigalixirapp.com/' % app_name
for i in range(30):
for i in range(60):
try:
logging.info('Attempt: %s/30: Checking %s' % (i, url))
logging.info('Attempt: %s/60: Checking %s' % (i, url))
r = requests.get(url)
if r.status_code != 200:
# wait 5 seconds
Expand Down Expand Up @@ -314,9 +314,9 @@ def __test_deploy_and_upgrade(cloud, region, branch="master"):
logging.info('Completed Hot Upgrade.')
start_time = timeit.default_timer()
url = 'https://%s.gigalixirapp.com/' % app_name
for i in range(30):
for i in range(60):
try:
logging.info('Attempt: %s/30: Checking %s' % (i, url))
logging.info('Attempt: %s/60: Checking %s' % (i, url))
r = requests.get(url)
if r.status_code != 200:
# wait 5 seconds
Expand Down

0 comments on commit 4a6fdb8

Please sign in to comment.