-
- Downloads
Fix flaky tests (#19701)
Our email tests can be a bit brittle. Sometimes we assert the first email in the email inbox is some password reset email, but a race makes it such that its a "logged in from new ip" email. Othertimes, we might assert that there are only emails to a particular user but maybe another test might have triggered an email to another user. We often might just want two predicates: did the user receive an email with this subject, or did the user receive an email with this body. This simply adds those. It should be safe from races as it can handle emails to multiple users and multiple emails to the same user.
Please register or sign in to comment