Skip to content

Commit f17b810

Browse files
Merge pull request #11077 from flouthoc/healthcheck-nit
`ci-fix`: healthcheck tests should use `.Should()` instead of `.To()`.
2 parents 9c4b7f9 + 2b5d9cd commit f17b810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/healthcheck_run_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ var _ = Describe("Podman healthcheck run", func() {
177177
It("podman healthcheck unhealthy but valid arguments check", func() {
178178
session := podmanTest.Podman([]string{"run", "-dt", "--name", "hc", "--health-retries", "2", "--health-cmd", "[\"ls\", \"/foo\"]", ALPINE, "top"})
179179
session.WaitWithDefaultTimeout()
180-
Expect(session.ExitCode()).To(Equal(0))
180+
Expect(session).Should(Exit(0))
181181

182182
hc := podmanTest.Podman([]string{"healthcheck", "run", "hc"})
183183
hc.WaitWithDefaultTimeout()
184-
Expect(hc.ExitCode()).To(Equal(1))
184+
Expect(hc).Should(Exit(1))
185185
})
186186

187187
It("podman healthcheck single healthy result changes failed to healthy", func() {

0 commit comments

Comments
 (0)