Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Example code typo in Testing External Systems
Nice reading. Just this typo got 10 mins out of me. :) Thanks.
  • Loading branch information
yuhaohaoyu authored and onsi committed Jan 13, 2022
1 parent 90868e2 commit ecb7098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Expand Up @@ -3747,8 +3747,8 @@ Eventually(func(g Gomega) {
g.Expect(err).NotTo(HaveOccurred())
expectedSubject := fmt.Sprintf(`"%s" is available for pickup`, book.Title)
subjectGetter := func(m gmail.Message) string { return m.Subject }
g.Expect(subjects).To(ContainElement(WithTransform(subjectGetter, Equal(expectedSubject))))
return subjects, nil
g.Expect(messages).To(ContainElement(WithTransform(subjectGetter, Equal(expectedSubject))))
return messages, nil
}).Should(Succeed())
```

Expand Down

0 comments on commit ecb7098

Please sign in to comment.