Skip to content

Commit

Permalink
Fixed IndexError when accessing the container port info (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus authored Sep 20, 2024
1 parent 00b9b5a commit cadcc9e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pytest_celery/api/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ def ready_prompt(self) -> str | None:
"""
return None

@retry(
stop=stop_after_attempt(3),
wait=wait_fixed(3),
retry=retry_if_exception_type(IndexError),
reraise=True,
)
def _wait_port(self, port: str) -> int:
"""Blocks until the specified port is ready.
Expand Down

0 comments on commit cadcc9e

Please sign in to comment.