Skip to content

Potential regression due to healthcheck wait strategy change? #807

@jalaziz

Description

@jalaziz

Expected Behaviour

We have a docker compose stack that we manage through testcontainers. Previous to v10.11.0, the stack came up normally.

Actual Behaviour

With v10.11.0, the stack fails to come up with a health check timeout.

Testcontainer Logs

Error: Health check not healthy after 60000ms

    at Timeout._onTimeout (/home/runner/work/monorepo/monorepo/node_modules/.pnpm/[email protected]/node_modules/testcontainers/src/wait-strategies/health-check-wait-strategy.ts:18:16)

Steps to Reproduce

  1. Setup a docker compose file with health checks.
  2. Call await new DockerComposeEnvironment(composeFilePath, 'docker-compose.yml').withWaitStrategy('foo-1', Wait.forHealthCheck()).up();
  3. Observe the timeout.

Environment Information

  • Operating System:
  • Docker Version:
  • Node version:
  • Testcontainers version: v10.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageInvestigation required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions