Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Jan 19, 2022
  2. Jan 18, 2022
  3. Jan 17, 2022
  4. Jan 14, 2022
    • dpsutton's avatar
      Fix flaky tests (#19701) · e64d3192
      dpsutton authored
      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.
      Unverified
      e64d3192
Loading