diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-07 17:28:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 17:28:28 -0500 |
commit | 23d2deed30c2491a2cf59644324f27c9eebf7ba4 (patch) | |
tree | e191f6ea97f53e22f9b43e04900fe9df1e65eef9 /test/utils | |
parent | 4c424e845239aef6e8cdab93dc19f55f4314513c (diff) | |
parent | 33bde4569ccb65b447150894c56f9a351a09a471 (diff) | |
download | podman-23d2deed30c2491a2cf59644324f27c9eebf7ba4.tar.gz podman-23d2deed30c2491a2cf59644324f27c9eebf7ba4.tar.bz2 podman-23d2deed30c2491a2cf59644324f27c9eebf7ba4.zip |
Merge pull request #8640 from mheon/221_backports
Backports for v2.2.1
Diffstat (limited to 'test/utils')
-rw-r--r-- | test/utils/podmansession_test.go | 4 | ||||
-rw-r--r-- | test/utils/utils.go | 2 |
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 |