summaryrefslogtreecommitdiff
path: root/test/emails
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-08-07 10:44:06 +0000
committerlain <lain@soykaf.club>2020-08-07 10:44:06 +0000
commit34cbe9f44a0266cd5ec652c3e70021ef928a7f31 (patch)
treec9ad17f8fd0718fd50ae7e489cbd0eaf7e5efcb0 /test/emails
parentb9ebb55d2aabdf4c99b05efab9d4ad31b25f888d (diff)
parent9d7ce1a6d014499eb4d55190b81e55da849b5ad0 (diff)
downloadpleroma-34cbe9f44a0266cd5ec652c3e70021ef928a7f31.tar.gz
pleroma-34cbe9f44a0266cd5ec652c3e70021ef928a7f31.zip
Merge branch 'features/poll-validation' into 'develop'
Poll and votes pipeline ingestion Closes #1362 and #1852 See merge request pleroma/pleroma!2635
Diffstat (limited to 'test/emails')
-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"},