Skip to content

Commit c3d2400

Browse files
committed
update time
1 parent 5a59a1f commit c3d2400

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integ/helpers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def make_sure_other_containers_are_stopped(client: DockerClient, container_name:
3333
# stop = tenacity.stop_after_attempt(10),
3434
# reraise = True
3535
# )
36-
def wait_for_container_to_be_ready(base_url, time_between_retries=1, max_retries=30):
36+
def wait_for_container_to_be_ready(base_url, time_between_retries=3, max_retries=30):
3737

3838
retries = 0
3939
error = None
@@ -46,7 +46,9 @@ def wait_for_container_to_be_ready(base_url, time_between_retries=1, max_retries
4646
logging.info("Container ready!")
4747
return True
4848
else:
49-
raise ConnectionError(f"Error: {response.status_code}")
49+
raise ConnectionError(
50+
f"Couldn'start container, Error: {response.status_code}"
51+
)
5052
except Exception as exception:
5153
error = exception
5254
logging.warning(f"Container at {base_url} not ready, trying again...")

0 commit comments

Comments
 (0)