X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Femails%2Fmailer_test.exs;h=3da45056bed564d0dbce77f7de2b6ba5f8c88e8d;hb=2def3cbf417075146da5e54201e9b969e6aa3eca;hp=e6e34cba8a3eba3f9efc98cb6ae2f9091e8b3cb5;hpb=1c05f539aaea32fe993e5299e656aa44c322e8de;p=akkoma diff --git a/test/emails/mailer_test.exs b/test/emails/mailer_test.exs index e6e34cba8..3da45056b 100644 --- a/test/emails/mailer_test.exs +++ b/test/emails/mailer_test.exs @@ -19,6 +19,7 @@ defmodule Pleroma.Emails.MailerTest do test "not send email when mailer is disabled" do Pleroma.Config.put([Pleroma.Emails.Mailer, :enabled], false) Mailer.deliver(@email) + :timer.sleep(100) refute_email_sent( from: {"Pleroma", "noreply@example.com"}, @@ -30,6 +31,7 @@ defmodule Pleroma.Emails.MailerTest do test "send email" do Mailer.deliver(@email) + :timer.sleep(100) assert_email_sent( from: {"Pleroma", "noreply@example.com"}, @@ -41,6 +43,7 @@ defmodule Pleroma.Emails.MailerTest do test "perform" do Mailer.perform(:deliver_async, @email, []) + :timer.sleep(100) assert_email_sent( from: {"Pleroma", "noreply@example.com"},