Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase retry_count for server_running to 10 to account for slower startup times of Wiremock #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wiremock/testing/testcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def copy_mapping_files_to_container(self) -> None:
configs=self.mapping_files, container_dir_path=Path(f"{self.FILES_DIR}")
)

def server_running(self, retry_count: int = 3, retry_delay: int = 1) -> bool:
def server_running(self, retry_count: int = 10, retry_delay: int = 1) -> bool:
"""Pings the __admin/mappings endpoint of the wiremock server running inside the
container as a proxy for checking if the server is up and running.

Expand Down