mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
test/e2e/inspect_test.go: wait for sessions
Make sure we're waiting for the ls container to finish to prevent potential flakes or future regressions. Spotted while enabling a linter. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -95,7 +95,8 @@ var _ = Describe("Podman inspect", func() {
|
||||
})
|
||||
|
||||
It("podman inspect container with size", func() {
|
||||
_, ec, _ := podmanTest.RunLsContainer("sizetest")
|
||||
session, ec, _ := podmanTest.RunLsContainer("sizetest")
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(ec).To(Equal(0))
|
||||
|
||||
result := podmanTest.Podman([]string{"inspect", "--size", "sizetest"})
|
||||
@ -108,6 +109,7 @@ var _ = Describe("Podman inspect", func() {
|
||||
|
||||
It("podman inspect container and image", func() {
|
||||
ls, ec, _ := podmanTest.RunLsContainer("")
|
||||
ls.WaitWithDefaultTimeout()
|
||||
Expect(ec).To(Equal(0))
|
||||
cid := ls.OutputToString()
|
||||
|
||||
@ -119,6 +121,7 @@ var _ = Describe("Podman inspect", func() {
|
||||
|
||||
It("podman inspect container and filter for Image{ID}", func() {
|
||||
ls, ec, _ := podmanTest.RunLsContainer("")
|
||||
ls.WaitWithDefaultTimeout()
|
||||
Expect(ec).To(Equal(0))
|
||||
cid := ls.OutputToString()
|
||||
|
||||
@ -135,6 +138,7 @@ var _ = Describe("Podman inspect", func() {
|
||||
|
||||
It("podman inspect container and filter for CreateCommand", func() {
|
||||
ls, ec, _ := podmanTest.RunLsContainer("")
|
||||
ls.WaitWithDefaultTimeout()
|
||||
Expect(ec).To(Equal(0))
|
||||
cid := ls.OutputToString()
|
||||
|
||||
|
Reference in New Issue
Block a user