mirror of
https://github.com/docker/compose.git
synced 2026-11-17 21:57:19 +00:00
Unit tests alone didn't cover the exact failure: an attached up hanging when the project is stopped/removed externally while a service sits in restart backoff. The new test reproduces that sequence end to end, so a future regression on this path breaks loudly instead of slipping through as a passing unit suite. A RestartCount guard narrows the race with the backoff expiring, so a missed window fails loudly instead of passing silently through the pre-existing die-based path. Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
5 lines
91 B
YAML
5 lines
91 B
YAML
services:
|
|
app:
|
|
image: alpine
|
|
restart: unless-stopped
|
|
command: sh -c "exit 1"
|