summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-12-01 14:20:15 -0500
committerMatthew Heon <mheon@redhat.com>2020-12-07 15:20:18 -0500
commit1ad0554d99c45a7322160968fd4c8fa143fa7377 (patch)
tree61f72a18b69d1c81989c9bec630d5f410d05896e /test/utils
parent688a6f1dd57e847c4d4ad8dc900b7e0adfa70c04 (diff)
downloadpodman-1ad0554d99c45a7322160968fd4c8fa143fa7377.tar.gz
podman-1ad0554d99c45a7322160968fd4c8fa143fa7377.tar.bz2
podman-1ad0554d99c45a7322160968fd4c8fa143fa7377.zip
Fix typo in tests
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
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