diff options
| author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-07-13 15:47:13 +0200 |
|---|---|---|
| committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-07-14 11:04:16 +0200 |
| commit | 858d9fc7e8e722604676c90cf2707f0209f935ec (patch) | |
| tree | b2b3300b31f693804f80bc79902f65719756260f /test/web/activity_pub/mrf/hellthread_policy_test.exs | |
| parent | f918b6f86ddf8e101a9ce22a46694788eb48b5c7 (diff) | |
| download | pleroma-858d9fc7e8e722604676c90cf2707f0209f935ec.tar.gz pleroma-858d9fc7e8e722604676c90cf2707f0209f935ec.zip | |
MRF Policies: Return a {:reject, reason} instead of {:reject, nil}
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", %{ |
