Skip to content

Question: Can HealthcheckWaitStrategy make use of the HEALTHCHECK defined on the image? #1033

Description

@rhoban13

What are you trying to do?

HealthcheckWaitStrategy initializes _startup_timeout from the testcontainers configuration. It can be overridden by calling with_startup_timeout.

Is there a way to indicate "Use whatever is defined on the image we are starting"?

Where are you trying to do it?

MyContainer.waiting_for(HealthcheckWaitStrategy.with_startup_timeout(XXXX))
# XXXX should be > whatever is defined on the container image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions