mirror of
https://github.com/containers/podman.git
synced 2025-08-01 05:54:53 +08:00
Fix typo in tests
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -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() {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user