commit: eafcb7b4ec368038aafa440ea32abe417a805f41
parent 364f6e1620876dcfc1d228e2db17190d74b6f0ce
Author: Lain Soykaf <lain@lain.com>
Date: Wed, 22 May 2024 12:59:10 +0400
Webfinger: Fix test
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/pleroma/web/web_finger_test.exs b/test/pleroma/web/web_finger_test.exs
@@ -213,6 +213,7 @@ defmodule Pleroma.Web.WebFingerTest do
end
end
+ @tag capture_log: true
test "prevents forgeries" do
Tesla.Mock.mock(fn
%{url: "https://fba.ryona.agency/.well-known/webfinger?resource=acct:graf@fba.ryona.agency"} ->
@@ -225,6 +226,6 @@ defmodule Pleroma.Web.WebFingerTest do
{:ok, %Tesla.Env{status: 404}}
end)
- refute {:ok, _} = WebFinger.finger("graf@fba.ryona.agency")
+ assert {:error, _} = WebFinger.finger("graf@fba.ryona.agency")
end
end