diff options
author | gabi beyer <gabrielle.n.beyer@intel.com> | 2019-09-04 22:33:08 +0000 |
---|---|---|
committer | gabi beyer <gabrielle.n.beyer@intel.com> | 2019-09-04 23:30:24 +0000 |
commit | 95f5411e88cb8b40142a7000dc0d1a90071e5c50 (patch) | |
tree | 7fe91f9d6e3c4c1bfa873730f5bb126aa3c4690c /test/e2e/rmi_test.go | |
parent | 84140f5331cebd7a63a44de277244d48452fe040 (diff) | |
download | podman-95f5411e88cb8b40142a7000dc0d1a90071e5c50.tar.gz podman-95f5411e88cb8b40142a7000dc0d1a90071e5c50.tar.bz2 podman-95f5411e88cb8b40142a7000dc0d1a90071e5c50.zip |
Fix unit tests missing comparative for 'Expect'
Add '.To(BeTrue())' to 'Expect(' statements in unit tests that
are missing them. These tests weren't being compared to anything,
thus reporting false positives.
Signed-off-by: gabi beyer <gabrielle.n.beyer@intel.com>
Diffstat (limited to 'test/e2e/rmi_test.go')
-rw-r--r-- | test/e2e/rmi_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/e2e/rmi_test.go b/test/e2e/rmi_test.go index d4e2407ec..506adee7e 100644 --- a/test/e2e/rmi_test.go +++ b/test/e2e/rmi_test.go @@ -282,6 +282,7 @@ RUN find $LOCAL session := podmanTest.PodmanNoCache([]string{"image", "rm"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(125)) - Expect(session.LineInOutputContains("image name or ID must be specified")) + match, _ := session.ErrorGrepString("image name or ID must be specified") + Expect(match).To(BeTrue()) }) }) |