summaryrefslogtreecommitdiff
path: root/test/e2e/images_test.go
diff options
context:
space:
mode:
authorgabi beyer <gabrielle.n.beyer@intel.com>2019-09-04 22:33:08 +0000
committergabi beyer <gabrielle.n.beyer@intel.com>2019-09-04 23:30:24 +0000
commit95f5411e88cb8b40142a7000dc0d1a90071e5c50 (patch)
tree7fe91f9d6e3c4c1bfa873730f5bb126aa3c4690c /test/e2e/images_test.go
parent84140f5331cebd7a63a44de277244d48452fe040 (diff)
downloadpodman-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/images_test.go')
-rw-r--r--test/e2e/images_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go
index 4eadc77e7..8203e4273 100644
--- a/test/e2e/images_test.go
+++ b/test/e2e/images_test.go
@@ -155,13 +155,13 @@ var _ = Describe("Podman images", func() {
retapline.WaitWithDefaultTimeout()
Expect(retapline.ExitCode()).To(Equal(0))
Expect(len(retapline.OutputToStringArray())).To(Equal(2))
- Expect(retapline.LineInOutputContains("alpine"))
+ Expect(retapline.LineInOutputContains("alpine")).To(BeTrue())
retapline = podmanTest.PodmanNoCache([]string{"images", "-f", "reference=alpine"})
retapline.WaitWithDefaultTimeout()
Expect(retapline.ExitCode()).To(Equal(0))
Expect(len(retapline.OutputToStringArray())).To(Equal(2))
- Expect(retapline.LineInOutputContains("alpine"))
+ Expect(retapline.LineInOutputContains("alpine")).To(BeTrue())
retnone := podmanTest.PodmanNoCache([]string{"images", "-q", "-f", "reference=bogus"})
retnone.WaitWithDefaultTimeout()