Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use refute_timeout configured for all refute_ assertions
What changed? ============ All refutation test helpers in `Bamboo.Test` should be using the `refute_timeout` configuration when testing on shared mode. ```elixir config :bamboo, :refute_timeout, 10 ``` The `refute_email_delivered_with/1` macro was not using the configuration, but instead it has 100ms hardcoded. This was a bug, since the original implementation should have used it. Known potential issue ---------------------- Since the previous waiting time was 100ms, and the `refute_timeout/0` function returns 0ms when not using shared mode, then it's possible some people could experience false positives in their tests (they think the email isn't received, so test passes. But 10ms later it arrives in the mailbox. Before, they were waiting 100ms, so they would have caught the error.)
- Loading branch information