Merge pull request #17251 from quite/status-up-not-ago

fix: don't output "ago" when container is currently up and running
This commit is contained in:
OpenShift Merge Robot
2023-01-27 09:22:24 -05:00
committed by GitHub
5 changed files with 11 additions and 11 deletions

View File

@@ -280,8 +280,8 @@ var _ = Describe("Podman ps", func() {
// must contain "Status"
match, StatusLine := result.GrepString(`Status`)
Expect(match).To(BeTrue())
// container is running or exit, so it must contain `ago`
Expect(StatusLine[0]).To(ContainSubstring("ago"))
// we waited for container to exit, so this must contain `Exited`
Expect(StatusLine[0]).To(ContainSubstring("Exited"))
})
It("podman ps namespace flag with go template format", func() {