aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-08-05 17:26:03 +0200
committerlain <lain@soykaf.club>2020-08-05 17:26:03 +0200
commit2173945f9012ec0db82a73fc7ed9423899dfd28f (patch)
tree88ebe2f5c0170f3664356344ddb9c29f1fb9a7e9
parent5221879c358a7859d54013597c9ed9ccbb494155 (diff)
downloadpleroma-2173945f9012ec0db82a73fc7ed9423899dfd28f.tar.gz
MailerTest: Give it some time.
-rw-r--r--test/emails/mailer_test.exs3
1 files changed, 3 insertions, 0 deletions
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"},