summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-01 22:38:58 +0100
committerGitHub <noreply@github.com>2020-12-01 22:38:58 +0100
commitb2cd6e0402bcd425130e397d79588dc406eccf53 (patch)
tree621406623bc0dfed9de9bae1e904fb0d46326441 /test/utils
parent7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870 (diff)
parent1f91521d24ac209938fa7524f657db8e0a30c20c (diff)
downloadpodman-b2cd6e0402bcd425130e397d79588dc406eccf53.tar.gz
podman-b2cd6e0402bcd425130e397d79588dc406eccf53.tar.bz2
podman-b2cd6e0402bcd425130e397d79588dc406eccf53.zip
Merge pull request #8542 from rhatdan/test
Fix typo in tests
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/podmansession_test.go4
-rw-r--r--test/utils/utils.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/utils/podmansession_test.go b/test/utils/podmansession_test.go
index d0e2f3d06..763cb4f26 100644
--- a/test/utils/podmansession_test.go
+++ b/test/utils/podmansession_test.go
@@ -53,8 +53,8 @@ var _ = Describe("PodmanSession test", func() {
})
It("Test LineInOutputStartsWith", func() {
- Expect(session.LineInOuputStartsWith("Podman")).To(BeTrue())
- Expect(session.LineInOuputStartsWith("Session")).To(Not(BeTrue()))
+ Expect(session.LineInOutputStartsWith("Podman")).To(BeTrue())
+ Expect(session.LineInOutputStartsWith("Session")).To(Not(BeTrue()))
})
It("Test LineInOutputContains", func() {
diff --git a/test/utils/utils.go b/test/utils/utils.go
index dd836f258..d08939678 100644
--- a/test/utils/utils.go
+++ b/test/utils/utils.go
@@ -277,7 +277,7 @@ func (s *PodmanSession) ErrorGrepString(term string) (bool, []string) {
// LineInOutputStartsWith returns true if a line in a
// session output starts with the supplied string
-func (s *PodmanSession) LineInOuputStartsWith(term string) bool {
+func (s *PodmanSession) LineInOutputStartsWith(term string) bool {
for _, i := range s.OutputToStringArray() {
if strings.HasPrefix(i, term) {
return true