mirror of https://github.com/containers/podman.git
Fix wrong condition in bindings test
Thanks for Brent Baude <bbaude@redhat.com> for the fix. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
04d9cee01a
commit
e95c493fec
|
@ -240,3 +240,7 @@ func createCache() {
|
|||
}
|
||||
b.cleanup()
|
||||
}
|
||||
|
||||
func isStopped(state string) bool {
|
||||
return state == "exited" || state == "stopped"
|
||||
}
|
||||
|
|
|
@ -232,7 +232,7 @@ var _ = Describe("Podman containers ", func() {
|
|||
// Ensure container is stopped
|
||||
data, err := containers.Inspect(connText, name, nil)
|
||||
Expect(err).To(BeNil())
|
||||
Expect(data.State.Status).To(Equal("exited"))
|
||||
Expect(isStopped(data.State.Status)).To(BeTrue())
|
||||
})
|
||||
|
||||
It("podman stop a running container by ID", func() {
|
||||
|
@ -247,7 +247,7 @@ var _ = Describe("Podman containers ", func() {
|
|||
// Ensure container is stopped
|
||||
data, err = containers.Inspect(connText, name, nil)
|
||||
Expect(err).To(BeNil())
|
||||
Expect(data.State.Status).To(Equal("exited"))
|
||||
Expect(isStopped(data.State.Status)).To(BeTrue())
|
||||
})
|
||||
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue