summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-29 11:57:23 -0400
committerGitHub <noreply@github.com>2021-07-29 11:57:23 -0400
commitf17b810279fd04c3d574e8d3dcc1878d50083a68 (patch)
treed56b06e646f4a80b25378bbaa11e9b3addab2c9d /test
parent9c4b7f9772e53dc7c9aa1438006b6fc32ba31817 (diff)
parent2b5d9cd7d0b091673a4e48445a26e1fa1d2d9501 (diff)
downloadpodman-f17b810279fd04c3d574e8d3dcc1878d50083a68.tar.gz
podman-f17b810279fd04c3d574e8d3dcc1878d50083a68.tar.bz2
podman-f17b810279fd04c3d574e8d3dcc1878d50083a68.zip
Merge pull request #11077 from flouthoc/healthcheck-nit
`ci-fix`: healthcheck tests should use `.Should()` instead of `.To()`.
Diffstat (limited to 'test')
-rw-r--r--test/e2e/healthcheck_run_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/healthcheck_run_test.go b/test/e2e/healthcheck_run_test.go
index 535783dbd..899c84a14 100644
--- a/test/e2e/healthcheck_run_test.go
+++ b/test/e2e/healthcheck_run_test.go
@@ -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() {