forked from AkkomaGang/akkoma
fix tests
This commit is contained in:
parent
d3b9cfb03f
commit
967c325b0d
2 changed files with 3 additions and 3 deletions
|
@ -153,7 +153,7 @@ test "rejects incoming AP docs with incorrect origin" do
|
|||
}
|
||||
|
||||
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
|
||||
|
@ -169,7 +169,7 @@ 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
|
||||
|
|
|
@ -16,7 +16,7 @@ test "it ignores MRF reject" do
|
|||
|
||||
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}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue