summaryrefslogtreecommitdiff
path: root/test/e2e/volume_create_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/volume_create_test.go')
-rw-r--r--test/e2e/volume_create_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/e2e/volume_create_test.go b/test/e2e/volume_create_test.go
index 3be1486d8..d1f769724 100644
--- a/test/e2e/volume_create_test.go
+++ b/test/e2e/volume_create_test.go
@@ -42,8 +42,7 @@ var _ = Describe("Podman volume create", func() {
check := podmanTest.Podman([]string{"volume", "ls", "-q"})
check.WaitWithDefaultTimeout()
- match, _ := check.GrepString(volName)
- Expect(match).To(BeTrue())
+ Expect(check.OutputToString()).To(ContainSubstring(volName))
Expect(len(check.OutputToStringArray())).To(Equal(1))
})
@@ -55,8 +54,7 @@ var _ = Describe("Podman volume create", func() {
check := podmanTest.Podman([]string{"volume", "ls", "-q"})
check.WaitWithDefaultTimeout()
- match, _ := check.GrepString(volName)
- Expect(match).To(BeTrue())
+ Expect(check.OutputToString()).To(ContainSubstring(volName))
Expect(len(check.OutputToStringArray())).To(Equal(1))
})