summaryrefslogtreecommitdiff
path: root/test/e2e/exists_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/exists_test.go')
-rw-r--r--test/e2e/exists_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/exists_test.go b/test/e2e/exists_test.go
index f0a55dd94..260b6d5f2 100644
--- a/test/e2e/exists_test.go
+++ b/test/e2e/exists_test.go
@@ -50,7 +50,7 @@ var _ = Describe("Podman image|container exists", func() {
It("podman container exists in local storage by name", func() {
setup := podmanTest.RunTopContainer("foobar")
setup.WaitWithDefaultTimeout()
- Expect(setup.ExitCode()).To(Equal(0))
+ Expect(setup).Should(Exit(0))
session := podmanTest.Podman([]string{"container", "exists", "foobar"})
session.WaitWithDefaultTimeout()
@@ -69,7 +69,7 @@ var _ = Describe("Podman image|container exists", func() {
It("podman container exists in local storage by short container ID", func() {
setup := podmanTest.RunTopContainer("")
setup.WaitWithDefaultTimeout()
- Expect(setup.ExitCode()).To(Equal(0))
+ Expect(setup).Should(Exit(0))
cid := setup.OutputToString()[0:12]
session := podmanTest.Podman([]string{"container", "exists", cid})