Merge branch 'develop' into dtluna/pleroma-feature/unfollow-activity
[akkoma] / test / web / twitter_api / twitter_api_controller_test.exs
index 05cd084b4fb9cb2c70837bb403a56a0a089f77fc..f8afbaee52b3d4a6995c8aeebb06bb0c6c6e76e9 100644 (file)
@@ -245,6 +245,7 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
 
       {:ok, current_user} = User.follow(current_user, followed)
       assert current_user.following == [User.ap_followers(followed)]
+      ActivityPub.follow(current_user, followed)
 
       conn = conn
       |> with_credentials(current_user.nickname, "test")
@@ -397,10 +398,4 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
     header_content = "Basic " <> Base.encode64("#{username}:#{password}")
     put_req_header(conn, "authorization", header_content)
   end
-
-  setup do
-    Supervisor.terminate_child(Pleroma.Supervisor, ConCache)
-    Supervisor.restart_child(Pleroma.Supervisor, ConCache)
-    :ok
-  end
 end