test: use private visibility for twitterapi update consistency test, to ensure that...
authorWilliam Pitcock <nenolod@dereferenced.org>
Mon, 6 Aug 2018 11:10:49 +0000 (11:10 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 6 Aug 2018 11:29:03 +0000 (11:29 +0000)
test/web/twitter_api/twitter_api_controller_test.exs

index 3a035e298783024276f4e9abd9c5a09179486e06..87bcdaf7101eda3b77ce2155f2d47de55d413ec6 100644 (file)
@@ -77,7 +77,8 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
       conn = conn_with_creds |> post(request_path, %{status: " "})
       assert json_response(conn, 400) == error_response
 
-      conn = conn_with_creds |> post(request_path, %{status: "Nice meme."})
+      # we post with visibility private in order to avoid triggering relay
+      conn = conn_with_creds |> post(request_path, %{status: "Nice meme.", visibility: "private"})
 
       assert json_response(conn, 200) ==
                ActivityRepresenter.to_map(Repo.one(Activity), %{user: user})