File tree 1 file changed +1
-3
lines changed 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -4387,7 +4387,7 @@ Eventually(func(g Gomega, ctx SpecContext) []string { //note: g Gomega must go f
4387
4387
for _ , message := range messages {
4388
4388
subjects = append (subjects, message.Subject )
4389
4389
}
4390
- return subjects, nil
4390
+ return subjects
4391
4391
}).WithContext (ctx).Should (ContainElement (fmt.Sprintf (` "%s" is available for pickup` , book.Title )))
4392
4392
```
4393
4393
@@ -4402,7 +4402,6 @@ Eventually(func(g Gomega, ctx SpecContext) {
4402
4402
subjects = append (subjects, message.Subject )
4403
4403
}
4404
4404
g.Expect (subjects).To (ContainElement (fmt.Sprintf (` "%s" is available for pickup` , book.Title )))
4405
- return subjects, nil
4406
4405
}).WithContext (ctx).Should (Succeed ())
4407
4406
```
4408
4407
@@ -4419,7 +4418,6 @@ Eventually(func(g Gomega, ctx SpecContext) {
4419
4418
expectedSubject := fmt.Sprintf (` "%s" is available for pickup` , book.Title )
4420
4419
subjectGetter := func (m gmail.Message ) string { return m.Subject }
4421
4420
g.Expect (messages).To (ContainElement (WithTransform (subjectGetter, Equal (expectedSubject))))
4422
- return messages, nil
4423
4421
}).WithContext (ctx).Should (Succeed ())
4424
4422
```
4425
4423
You can’t perform that action at this time.
0 commit comments