summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-12-01 14:20:15 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2020-12-01 15:08:26 -0500
commit1f91521d24ac209938fa7524f657db8e0a30c20c (patch)
tree55b0bedb1d3f163d7753d87d44a5c84027a268a2 /test/utils
parentce45b71dcfe7e5e0fd7ab43b9eeb4834317e6443 (diff)
downloadpodman-1f91521d24ac209938fa7524f657db8e0a30c20c.tar.gz
podman-1f91521d24ac209938fa7524f657db8e0a30c20c.tar.bz2
podman-1f91521d24ac209938fa7524f657db8e0a30c20c.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