Fix tests

Need to handle the edge case of no valid HTTP response which has no status code
This commit is contained in:
Mark Felder 2023-12-29 12:18:23 -05:00
commit 833117f573
2 changed files with 8 additions and 1 deletions

View file

@ -212,7 +212,8 @@ defmodule Pleroma.Web.ActivityPub.PublisherTest do
actor = insert(:user)
inbox = "http://404.site/users/nick1/inbox"
assert {:error, _} = Publisher.publish_one(%{inbox: inbox, json: "{}", actor: actor, id: 1})
assert {:discard, _} =
Publisher.publish_one(%{inbox: inbox, json: "{}", actor: actor, id: 1})
assert called(Instances.set_unreachable(inbox))
end