tests: fix up signature tests
authorAriadne Conill <ariadne@dereferenced.org>
Fri, 18 Oct 2019 02:56:02 +0000 (02:56 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Fri, 18 Oct 2019 14:50:10 +0000 (14:50 +0000)
test/signature_test.exs

index 96c8ba07ac213ab88dcef1a8611bbbeeacfc6c5b..6b168f2d993d48528b0ecd215b4f63824a6d591a 100644 (file)
@@ -69,8 +69,7 @@ defmodule Pleroma.SignatureTest do
 
     test "it returns error when not found user" do
       assert capture_log(fn ->
-               assert Signature.refetch_public_key(make_fake_conn("test-ap_id")) ==
-                        {:error, {:error, :ok}}
+               {:error, _} = Signature.refetch_public_key(make_fake_conn("test-ap_id"))
              end) =~ "[error] Could not decode user"
     end
   end