From b9e5f9e91733c3a36c374e50fcca8d61bab43f9b Mon Sep 17 00:00:00 2001 From: Milas Bowman Date: Fri, 2 Dec 2022 09:34:06 -0500 Subject: [PATCH] test: speed up Cucumber stop test (#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 --- e2e/cucumber-features/stop.feature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/cucumber-features/stop.feature b/e2e/cucumber-features/stop.feature index 46b337325..9f6b0d938 100644 --- a/e2e/cucumber-features/stop.feature +++ b/e2e/cucumber-features/stop.feature @@ -10,6 +10,7 @@ Background: sleep: # will be killed image: alpine command: ping localhost + init: true """ Scenario: Cascade stop @@ -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"