diff options
author | Mark Felder <feld@feld.me> | 2023-12-29 12:18:23 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2023-12-29 13:04:06 -0500 |
commit | 833117f5738c286864d525aea9a87d1a7c193ff3 (patch) | |
tree | 8b802d2fbe5e581833144d40106397101c34679c /test | |
parent | 4afe211e50466606c898e3fbd08b617413ef2e16 (diff) | |
download | pleroma-833117f5738c286864d525aea9a87d1a7c193ff3.tar.gz pleroma-833117f5738c286864d525aea9a87d1a7c193ff3.zip |
Fix tests
Need to handle the edge case of no valid HTTP response which has no status code
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/activity_pub/publisher_test.exs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pleroma/web/activity_pub/publisher_test.exs b/test/pleroma/web/activity_pub/publisher_test.exs index bab25c8ab..7aa06a5c4 100644 --- a/test/pleroma/web/activity_pub/publisher_test.exs +++ b/test/pleroma/web/activity_pub/publisher_test.exs @@ -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 |