test(backend): fix legacy notifier test assert

We can't refute something right after asserting it before, unfortunately

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2024-02-08 16:14:55 +01:00
parent 28430d6d57
commit 67314928e0
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -427,7 +427,8 @@ defmodule Mobilizon.Service.Workers.LegacyNotifierBuilderTest do
assert_email_sending(%Swoosh.Email{to: [{"", "anon@mou.se"}]}, 10_000)
refute_email_sent(%Swoosh.Email{to: [{"", "user2@do.main"}]})
refute_email_sent(%Swoosh.Email{to: [{"", "anon@mou.se"}]})
# Because of timeouts, can't do that currently
# refute_email_sent(%Swoosh.Email{to: [{"", "anon@mou.se"}]})
end
end
end