}
assert {:ok, job} = Federator.incoming_ap_doc(params)
- assert {:cancel, :origin_containment_failed} = ObanHelpers.perform(job)
+ assert {:discard, :origin_containment_failed} = ObanHelpers.perform(job)
end
test "it does not crash if MRF rejects the post" do
|> Jason.decode!()
assert {:ok, job} = Federator.incoming_ap_doc(params)
- assert {:cancel, _} = ObanHelpers.perform(job)
+ assert {:discard, _} = ObanHelpers.perform(job)
end
end
end
with_mock Pleroma.Web.ActivityPub.Transmogrifier,
handle_incoming: fn _ -> {:reject, "MRF"} end do
- assert {:cancel, "MRF"} =
+ assert {:discard, "MRF"} =
ReceiverWorker.perform(%Oban.Job{
args: %{"op" => "incoming_ap_doc", "params" => params}
})