diff options
author | flouthoc <flouthoc.git@gmail.com> | 2021-07-29 19:53:18 +0530 |
---|---|---|
committer | flouthoc <flouthoc.git@gmail.com> | 2021-07-29 19:53:30 +0530 |
commit | 2b5d9cd7d0b091673a4e48445a26e1fa1d2d9501 (patch) | |
tree | bbe63ac89c42225ac03403f3866c0c43a51fbb16 /test/e2e | |
parent | 1ec1c85b5a44afb0e76c40e0e908c6e55ab9c3dd (diff) | |
download | podman-2b5d9cd7d0b091673a4e48445a26e1fa1d2d9501.tar.gz podman-2b5d9cd7d0b091673a4e48445a26e1fa1d2d9501.tar.bz2 podman-2b5d9cd7d0b091673a4e48445a26e1fa1d2d9501.zip |
Fix: healthcheck tests use .Should() instead of .To()
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/healthcheck_run_test.go | 4 |
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() { |