diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-07-21 10:03:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 10:03:12 -0400 |
commit | 782634334eaadb43e056571a57e76bd2ee9016f4 (patch) | |
tree | f2249ad8bbabfa7b0735c6102430a6e34bd8e528 /test/README.md | |
parent | 1cb61f9d6ddfe161c9403381134717a9b8e50e7b (diff) | |
parent | 5952270950bbeeff3092d42c35099792a5401b17 (diff) | |
download | podman-782634334eaadb43e056571a57e76bd2ee9016f4.tar.gz podman-782634334eaadb43e056571a57e76bd2ee9016f4.tar.bz2 podman-782634334eaadb43e056571a57e76bd2ee9016f4.zip |
Merge pull request #10997 from edsantiago/helpfuler_expects
e2e tests: prevent 'Expect(ExitCode())' pattern
Diffstat (limited to 'test/README.md')
-rw-r--r-- | test/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/README.md b/test/README.md index d7710cc95..769bdbfd7 100644 --- a/test/README.md +++ b/test/README.md @@ -84,7 +84,7 @@ file itself. Consider the following actual test: It("podman inspect bogus pod", func() { session := podmanTest.Podman([]string{"pod", "inspect", "foobar"}) session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Not(Equal(0))) + Expect(session).To(ExitWithError()) }) ``` |