From 49703299b1701396e7de498820484650919b631d Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 16 Jan 2020 16:19:06 +0100 Subject: e2e/run_signal_test.go: make it more robust Make the signal test more robust by just checking that the container's exit code is non-zero. There are two possible exit codes (i.e., 130 and 137) depending on how the container is being killed, which is likely responsible for CI flakes. Fixes: #4886 Signed-off-by: Valentin Rothberg --- test/e2e/run_signal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/e2e') diff --git a/test/e2e/run_signal_test.go b/test/e2e/run_signal_test.go index eee7c14fb..fbdd3acec 100644 --- a/test/e2e/run_signal_test.go +++ b/test/e2e/run_signal_test.go @@ -132,7 +132,7 @@ var _ = Describe("Podman run with --sig-proxy", func() { Expect(killSession.ExitCode()).To(Equal(0)) session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(137)) + Expect(session.ExitCode()).ToNot(Equal(0)) ok, _ = session.GrepString("Received") Expect(ok).To(BeFalse()) }) -- cgit v1.2.3-54-g00ecf