Skip to content

Commit b9e5f9e

Browse files
authored
test: speed up Cucumber stop test (docker#10032)
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 <[email protected]>
1 parent c74a77e commit b9e5f9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

e2e/cucumber-features/stop.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Background:
1010
sleep: # will be killed
1111
image: alpine
1212
command: ping localhost
13+
init: true
1314
"""
1415

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

2728
Scenario: Exit code from unknown service
2829
When I run "compose up --exit-code-from unknown"

0 commit comments

Comments
 (0)