diff options
Diffstat (limited to 'test/pleroma/object')
| -rw-r--r--[-rwxr-xr-x] | test/pleroma/object/containment_test.exs | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | test/pleroma/object/fetcher_test.exs | 7 | ||||
| -rw-r--r--[-rwxr-xr-x] | test/pleroma/object/updater_test.exs | 0 |
3 files changed, 3 insertions, 4 deletions
diff --git a/test/pleroma/object/containment_test.exs b/test/pleroma/object/containment_test.exs index cf906ef..cf906ef 100755..100644 --- a/test/pleroma/object/containment_test.exs +++ b/test/pleroma/object/containment_test.exs diff --git a/test/pleroma/object/fetcher_test.exs b/test/pleroma/object/fetcher_test.exs index 53c9277..6f21452 100755..100644 --- a/test/pleroma/object/fetcher_test.exs +++ b/test/pleroma/object/fetcher_test.exs @@ -101,8 +101,7 @@ defmodule Pleroma.Object.FetcherTest do test "it returns thread depth exceeded error if thread depth is exceeded" do clear_config([:instance, :federation_incoming_replies_max_depth], 0) - assert {:error, "Max thread distance exceeded."} = - Fetcher.fetch_object_from_id(@ap_id, depth: 1) + assert {:error, :allowed_depth} = Fetcher.fetch_object_from_id(@ap_id, depth: 1) end test "it fetches object if max thread depth is restricted to 0 and depth is not specified" do @@ -220,14 +219,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/object/updater_test.exs b/test/pleroma/object/updater_test.exs index 7e9b448..7e9b448 100755..100644 --- a/test/pleroma/object/updater_test.exs +++ b/test/pleroma/object/updater_test.exs |
