Skip to content

Commit

Permalink
tests(smtp): add retries to SMTP 'IMAP - Retrieve sent mail' test case
Browse files Browse the repository at this point in the history
Signed-off-by: Tom ADELE <tom.adele@ovhcloud.com>
  • Loading branch information
tomadele committed Dec 21, 2022
1 parent 37e452c commit 9bffbe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/smtp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ testcases:
to: address@example.org
subject: Venom SMTP tests
body: Hi, I am Venom SMTP Executor!
retry: 2 # Sometimes, the SMTP agent does not store the mail fast enough, which causes INBOX to be empty when we run this test
retry_if:
- result.commands.commands0.err ShouldContainSubstring "empty mailbox"
assertions:
- result.commands.commands0.err ShouldBeEmpty
- result.commands.commands0.search.from ShouldEqual venom@smtp.net
Expand Down

0 comments on commit 9bffbe4

Please sign in to comment.