summaryrefslogtreecommitdiff
path: root/test/user_test.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-09-23 09:05:52 +0000
committerlain <lain@soykaf.club>2020-09-23 09:05:52 +0000
commit34235bc02a88718b1d5a9d7fa2437784b91bb692 (patch)
tree8e862acf9257c49303e16d8224eea86233624f52 /test/user_test.exs
parent02f12ec6253093d8bedaf84d78d0f7e533745e1b (diff)
parent9d6415de157ddf6effb154b354fd6410dba8aae6 (diff)
downloadpleroma-34235bc02a88718b1d5a9d7fa2437784b91bb692.tar.gz
pleroma-34235bc02a88718b1d5a9d7fa2437784b91bb692.zip
Merge branch 'email-fix-develop' into 'develop'
Allow emails to be sent again (develop) Closes #2172 See merge request pleroma/pleroma!3025
Diffstat (limited to 'test/user_test.exs')
-rw-r--r--test/user_test.exs7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/user_test.exs b/test/user_test.exs
index cceb14eb9..d506f7047 100644
--- a/test/user_test.exs
+++ b/test/user_test.exs
@@ -509,7 +509,12 @@ defmodule Pleroma.UserTest do
cng = User.register_changeset(%User{}, @full_user_data)
{:ok, registered_user} = User.register(cng)
ObanHelpers.perform_all()
- assert_email_sent(Pleroma.Emails.UserEmail.account_confirmation_email(registered_user))
+
+ Pleroma.Emails.UserEmail.account_confirmation_email(registered_user)
+ # temporary hackney fix until hackney max_connections bug is fixed
+ # https://git.pleroma.social/pleroma/pleroma/-/issues/2101
+ |> Swoosh.Email.put_private(:hackney_options, ssl_options: [versions: [:"tlsv1.2"]])
+ |> assert_email_sent()
end
test "it requires an email, name, nickname and password, bio is optional when account_activation_required is enabled" do