mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-21 07:07:50 +00:00
Fix: healthcheck tests use .Should() instead of .To()
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
This commit is contained in:
parent
1ec1c85b5a
commit
2b5d9cd7d0
1 changed files with 2 additions and 2 deletions
|
|
@ -177,11 +177,11 @@ var _ = Describe("Podman healthcheck run", func() {
|
|||
It("podman healthcheck unhealthy but valid arguments check", func() {
|
||||
session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", "--health-retries", "2", "--health-cmd", "[\"ls\", \"/foo\"]", ALPINE, "top"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
Expect(session).Should(Exit(0))
|
||||
|
||||
hc := podmanTest.Podman([]string{"healthcheck", "run", "hc"})
|
||||
hc.WaitWithDefaultTimeout()
|
||||
Expect(hc.ExitCode()).To(Equal(1))
|
||||
Expect(hc).Should(Exit(1))
|
||||
})
|
||||
|
||||
It("podman healthcheck single healthy result changes failed to healthy", func() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue