unnecessary mock
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 3 Mar 2020 13:46:20 +0000 (16:46 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Tue, 3 Mar 2020 13:46:20 +0000 (16:46 +0300)
test/notification_test.exs

index 1c60f6866a1296537e2c7d816bbe328155611082..56a5818103ecf7a0ecc615f1e95d9db50f580386 100644 (file)
@@ -649,13 +649,6 @@ defmodule Pleroma.NotificationTest do
         "object" => remote_user.ap_id
       }
 
-      remote_user_url = remote_user.ap_id
-
-      Tesla.Mock.mock(fn
-        %{method: :get, url: ^remote_user_url} ->
-          %Tesla.Env{status: 404, body: ""}
-      end)
-
       {:ok, _delete_activity} = Transmogrifier.handle_incoming(delete_user_message)
       ObanHelpers.perform_all()