compose/pkg/e2e/testdata/TestUpWaitTimeoutOnDependency/compose.yaml
Nicolas De Loof 42c2b0d85d test(e2e): lock --wait-timeout on a depends_on service_healthy dependency
The wiring of --wait-timeout into the plan's dependency waits was only
covered by executor tests that set the timeout by hand, and by an e2e
without depends_on. The scenario has a dependency that never gets
healthy and checks that up -d --wait-timeout fails with the dependency
timeout message (without the raw deadline error) and leaves the
dependent service created but not started.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-10-15 14:52:20 +02:00

15 lines
261 B
YAML

services:
db:
image: alpine
command: sleep infinity
healthcheck:
test: ["CMD", "false"]
interval: 1s
retries: 100
web:
image: alpine
command: sleep infinity
depends_on:
db:
condition: service_healthy