summaryrefslogtreecommitdiff
path: root/test/e2e/run_exit_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-21 10:03:12 -0400
committerGitHub <noreply@github.com>2021-07-21 10:03:12 -0400
commit782634334eaadb43e056571a57e76bd2ee9016f4 (patch)
treef2249ad8bbabfa7b0735c6102430a6e34bd8e528 /test/e2e/run_exit_test.go
parent1cb61f9d6ddfe161c9403381134717a9b8e50e7b (diff)
parent5952270950bbeeff3092d42c35099792a5401b17 (diff)
downloadpodman-782634334eaadb43e056571a57e76bd2ee9016f4.tar.gz
podman-782634334eaadb43e056571a57e76bd2ee9016f4.tar.bz2
podman-782634334eaadb43e056571a57e76bd2ee9016f4.zip
Merge pull request #10997 from edsantiago/helpfuler_expects
e2e tests: prevent 'Expect(ExitCode())' pattern
Diffstat (limited to 'test/e2e/run_exit_test.go')
-rw-r--r--test/e2e/run_exit_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/e2e/run_exit_test.go b/test/e2e/run_exit_test.go
index 21f1a8650..e86718577 100644
--- a/test/e2e/run_exit_test.go
+++ b/test/e2e/run_exit_test.go
@@ -49,11 +49,7 @@ var _ = Describe("Podman run exit", func() {
It("podman run exit ExecErrorCodeNotFound", func() {
result := podmanTest.Podman([]string{"run", ALPINE, "foobar"})
result.WaitWithDefaultTimeout()
- Expect(result.ExitCode()).To(Not(Equal(define.ExecErrorCodeGeneric)))
- // TODO This is failing we believe because of a race condition
- // Between conmon and podman closing the socket early.
- // Test with the following, once the race condition is solved
- // Expect(result).Should(Exit(define.ExecErrorCodeNotFound))
+ Expect(result).Should(Exit(define.ExecErrorCodeNotFound))
})
It("podman run exit 0", func() {