Skip to content

Commit

Permalink
test: speed up Cucumber stop test (docker#10032)
Browse files Browse the repository at this point in the history
Evidently `ping` doesn't respond to `SIGTERM`, so use `init` to
get Tini supervising it. This changes the exit code to 143 since
it's not hitting the 10s timeout and getting a `SIGKILL` (137).

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
  • Loading branch information
milas committed Dec 2, 2022
1 parent c74a77e commit b9e5f9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/cucumber-features/stop.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Background:
sleep: # will be killed
image: alpine
command: ping localhost
init: true
"""

Scenario: Cascade stop
Expand All @@ -22,7 +23,7 @@ Scenario: Exit code from
When I run "compose up --exit-code-from sleep"
Then the output contains "should_fail-1 exited with code 1"
And the output contains "Aborting on container exit..."
And the exit code is 137
And the exit code is 143

Scenario: Exit code from unknown service
When I run "compose up --exit-code-from unknown"
Expand Down

0 comments on commit b9e5f9e

Please sign in to comment.