diff --git a/test/pleroma/web/web_finger_test.exs b/test/pleroma/web/web_finger_test.exs index 68c3c7754..2af084090 100644 --- a/test/pleroma/web/web_finger_test.exs +++ b/test/pleroma/web/web_finger_test.exs @@ -9,7 +9,7 @@ defmodule Pleroma.Web.WebFingerTest do import Tesla.Mock setup do - mock(fn env -> apply(HttpRequestMock, :request, [env]) end) + mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end) :ok end diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index f8cc2b69f..7bfcfaa0e 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1464,15 +1464,6 @@ def get("https://p.helene.moe/objects/fd5910ac-d9dc-412e-8d1d-914b203296c4", _, }} end - def get("https://misskey.io/notes/8vs6wxufd0", _, _, _) do - {:ok, - %Tesla.Env{ - status: 200, - body: File.read!("test/fixtures/tesla_mock/misskey.io_8vs6wxufd0.json"), - headers: activitypub_object_headers() - }} - end - def get("https://google.com/", _, _, _) do {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/rich_media/google.html")}} end