aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/wait_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/wait_test.go')
-rw-r--r--test/e2e/wait_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/wait_test.go b/test/e2e/wait_test.go
index 08da97aa0..69e64774c 100644
--- a/test/e2e/wait_test.go
+++ b/test/e2e/wait_test.go
@@ -66,4 +66,11 @@ var _ = Describe("Podman wait", func() {
session = podmanTest.Podman([]string{"wait", "-l"})
session.Wait(20)
})
+ It("podman container wait on latest container", func() {
+ session := podmanTest.Podman([]string{"container", "run", "-d", ALPINE, "sleep", "1"})
+ session.Wait(20)
+ Expect(session.ExitCode()).To(Equal(0))
+ session = podmanTest.Podman([]string{"container", "wait", "-l"})
+ session.Wait(20)
+ })
})