Skip to content

Commit cadcc9e

Browse files
authored
Fixed IndexError when accessing the container port info (#417)
1 parent 00b9b5a commit cadcc9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pytest_celery/api/container.py

+6
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ def ready_prompt(self) -> str | None:
9898
"""
9999
return None
100100

101+
@retry(
102+
stop=stop_after_attempt(3),
103+
wait=wait_fixed(3),
104+
retry=retry_if_exception_type(IndexError),
105+
reraise=True,
106+
)
101107
def _wait_port(self, port: str) -> int:
102108
"""Blocks until the specified port is ready.
103109

0 commit comments

Comments
 (0)