diff options
| author | Maksim Pechnikov <parallel588@gmail.com> | 2020-07-16 08:53:21 +0300 |
|---|---|---|
| committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-07-16 08:53:21 +0300 |
| commit | 6c59fe259d3d8eccc4102baaac64baf2aff301cb (patch) | |
| tree | b950bca418d5d12772d1aed1226731f7e23d166c /test/web/activity_pub/mrf/hellthread_policy_test.exs | |
| parent | 4e0e19a7060da9f3eb06ffb0bdb816c7dedb720b (diff) | |
| parent | 3a2b2cb6f2d6ce39ae0d246649189c021c535992 (diff) | |
| download | pleroma-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.exs | 3 |
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", %{ |
