aboutsummaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-01-16 16:19:06 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-01-16 16:19:06 +0100
commit49703299b1701396e7de498820484650919b631d (patch)
treec1520dc84c45214cf374eafe88d5564d9dff80cc /test/e2e
parentdb00ee97e950290a6bc5d669cde0cbc54bb94afe (diff)
downloadpodman-49703299b1701396e7de498820484650919b631d.tar.gz
podman-49703299b1701396e7de498820484650919b631d.tar.bz2
podman-49703299b1701396e7de498820484650919b631d.zip
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 <rothberg@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_signal_test.go2
1 files changed, 1 insertions, 1 deletions
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())
})