fix for sometimes failing tests
This commit is contained in:
parent
3d5d8c05c9
commit
c68bcae362
3 changed files with 6 additions and 2 deletions
|
|
@ -14,10 +14,10 @@ defmodule Pleroma.Emails.MailerTest do
|
|||
subject: "Pleroma test email",
|
||||
to: [{"Test User", "user1@example.com"}]
|
||||
}
|
||||
setup do: clear_config([Pleroma.Emails.Mailer, :enabled])
|
||||
setup do: clear_config([Pleroma.Emails.Mailer, :enabled], true)
|
||||
|
||||
test "not send email when mailer is disabled" do
|
||||
Pleroma.Config.put([Pleroma.Emails.Mailer, :enabled], false)
|
||||
clear_config([Pleroma.Emails.Mailer, :enabled], false)
|
||||
Mailer.deliver(@email)
|
||||
:timer.sleep(100)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue