diff options
author | Mark Felder <feld@feld.me> | 2024-01-26 19:21:43 -0500 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-01-26 21:03:41 -0500 |
commit | 1b40ebfa2040da1bc80c5bbd50aff0f764d7c523 (patch) | |
tree | e8eef4deb9f387e2acb38b76d494a8e959f8c58f /test | |
parent | 87cf7010fc865f37f518d51e9b41e91cb0524bbe (diff) | |
download | pleroma-1b40ebfa2040da1bc80c5bbd50aff0f764d7c523.tar.gz pleroma-1b40ebfa2040da1bc80c5bbd50aff0f764d7c523.zip |
Pleroma.Signature: dialyzer error
lib/pleroma/signature.ex:30:pattern_match
The pattern can never match the type.
Pattern:
%{<<97, 112, 95, 105, 100>> => _ap_id}
Type:
{:error, _} | {:ok, map()}
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/signature_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pleroma/signature_test.exs b/test/pleroma/signature_test.exs index f5a915fa8..8edf67a7b 100644 --- a/test/pleroma/signature_test.exs +++ b/test/pleroma/signature_test.exs @@ -113,7 +113,7 @@ defmodule Pleroma.SignatureTest do test "it calls webfinger for 'acct:' accounts" do with_mock(Pleroma.Web.WebFinger, - finger: fn _ -> %{"ap_id" => "https://gensokyo.2hu/users/raymoo"} end + finger: fn _ -> {:ok, %{"ap_id" => "https://gensokyo.2hu/users/raymoo"}} end ) do assert Signature.key_id_to_actor_id("acct:raymoo@gensokyo.2hu") == {:ok, "https://gensokyo.2hu/users/raymoo"} |