diff options
author | Mark Felder <feld@feld.me> | 2023-12-27 21:57:47 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2023-12-27 22:01:59 -0500 |
commit | a2708f7fe31c6009b0c9954e5de3b74c45f9818f (patch) | |
tree | 499ca8ec2ef1f478a9873665251c9a1abee4387b /test | |
parent | 287f2c9719310f96ce37b445f26e069f804c34b2 (diff) | |
download | pleroma-a2708f7fe31c6009b0c9954e5de3b74c45f9818f.tar.gz pleroma-a2708f7fe31c6009b0c9954e5de3b74c45f9818f.zip |
Leverage existing atoms as return errors for the object fetcher
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/object/fetcher_test.exs | 4 | ||||
-rw-r--r-- | test/pleroma/web/twitter_api/remote_follow_controller_test.exs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/pleroma/object/fetcher_test.exs b/test/pleroma/object/fetcher_test.exs index 53c9277d6..24f114c00 100644 --- a/test/pleroma/object/fetcher_test.exs +++ b/test/pleroma/object/fetcher_test.exs @@ -220,14 +220,14 @@ defmodule Pleroma.Object.FetcherTest do end test "handle HTTP 410 Gone response" do - assert {:error, "Object has been deleted"} == + assert {:error, :not_found} == Fetcher.fetch_and_contain_remote_object_from_id( "https://mastodon.example.org/users/userisgone" ) end test "handle HTTP 404 response" do - assert {:error, "Object has been deleted"} == + assert {:error, :not_found} == Fetcher.fetch_and_contain_remote_object_from_id( "https://mastodon.example.org/users/userisgone404" ) diff --git a/test/pleroma/web/twitter_api/remote_follow_controller_test.exs b/test/pleroma/web/twitter_api/remote_follow_controller_test.exs index 41f8ebcd7..c6ecb53f4 100644 --- a/test/pleroma/web/twitter_api/remote_follow_controller_test.exs +++ b/test/pleroma/web/twitter_api/remote_follow_controller_test.exs @@ -137,7 +137,7 @@ defmodule Pleroma.Web.TwitterAPI.RemoteFollowControllerTest do |> html_response(200) assert response =~ "Error fetching user" - end) =~ "Object has been deleted" + end) =~ ":not_found" end end |