summaryrefslogtreecommitdiff
path: root/test/web/activity_pub/mrf/hellthread_policy_test.exs
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-07-16 08:53:21 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-07-16 08:53:21 +0300
commit6c59fe259d3d8eccc4102baaac64baf2aff301cb (patch)
treeb950bca418d5d12772d1aed1226731f7e23d166c /test/web/activity_pub/mrf/hellthread_policy_test.exs
parent4e0e19a7060da9f3eb06ffb0bdb816c7dedb720b (diff)
parent3a2b2cb6f2d6ce39ae0d246649189c021c535992 (diff)
downloadpleroma-6c59fe259d3d8eccc4102baaac64baf2aff301cb.tar.gz
pleroma-6c59fe259d3d8eccc4102baaac64baf2aff301cb.zip
Merge branch 'develop' into issue/1023
Diffstat (limited to 'test/web/activity_pub/mrf/hellthread_policy_test.exs')
-rw-r--r--test/web/activity_pub/mrf/hellthread_policy_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/activity_pub/mrf/hellthread_policy_test.exs b/test/web/activity_pub/mrf/hellthread_policy_test.exs
index 6e9daa7f9..26f5bcdaa 100644
--- a/test/web/activity_pub/mrf/hellthread_policy_test.exs
+++ b/test/web/activity_pub/mrf/hellthread_policy_test.exs
@@ -50,7 +50,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicyTest do
} do
Pleroma.Config.put([:mrf_hellthread], %{delist_threshold: 0, reject_threshold: 2})
- {:reject, nil} = filter(message)
+ assert {:reject, "[HellthreadPolicy] 3 recipients is over the limit of 2"} ==
+ filter(message)
end
test "does not reject the message if the recipient count is below reject_threshold", %{