Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Jan 9, 2025
1 parent 6a93d6b commit 7328639
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/tests/challenges_tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ def test_challenge_budget_alert_two_thresholds_one_email(settings):

# Two budget alert thresholds exceeded, alert only sent for last one.
assert len(mail.outbox) == 3
recipients = [r for m in mail.outbox for r in m.to]
assert recipients == [
recipients = {r for m in mail.outbox for r in m.to}
assert recipients == {
challenge.creator.email,
challenge_admin.email,
staff_user.email,
]
}
assert (
mail.outbox[0].subject
== "[testserver] [test] over 90% Budget Consumed Alert"
Expand Down

0 comments on commit 7328639

Please sign in to comment.