Make clear the test names

This commit is contained in:
tusooa 2023-03-01 21:14:52 -05:00
parent bec4e5ac31
commit a0ec66ce7e
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224

View File

@ -11,7 +11,7 @@ defmodule Pleroma.Workers.ReceiverWorkerTest do
alias Pleroma.Workers.ReceiverWorker alias Pleroma.Workers.ReceiverWorker
test "it ignores MRF reject" do test "it does not retry MRF reject" do
params = insert(:note).data params = insert(:note).data
with_mock Pleroma.Web.ActivityPub.Transmogrifier, with_mock Pleroma.Web.ActivityPub.Transmogrifier,
@ -23,7 +23,7 @@ defmodule Pleroma.Workers.ReceiverWorkerTest do
end end
end end
test "it ignores ObjectValidator reject" do test "it does not retry ObjectValidator reject" do
params = params =
insert(:note_activity).data insert(:note_activity).data
|> Map.put("id", Pleroma.Web.ActivityPub.Utils.generate_activity_id()) |> Map.put("id", Pleroma.Web.ActivityPub.Utils.generate_activity_id())
@ -41,7 +41,7 @@ defmodule Pleroma.Workers.ReceiverWorkerTest do
end end
end end
test "it ignores duplicates" do test "it does not retry duplicates" do
params = insert(:note_activity).data params = insert(:note_activity).data
assert {:cancel, :already_present} = assert {:cancel, :already_present} =