From 00c593b92dcf86b68a553f2587679a546602ba4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 29 Aug 2024 19:38:10 +0200 Subject: [PATCH] Fix test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- test/pleroma/web/common_api_test.exs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/pleroma/web/common_api_test.exs b/test/pleroma/web/common_api_test.exs index 3f19910148..4eb2247c89 100644 --- a/test/pleroma/web/common_api_test.exs +++ b/test/pleroma/web/common_api_test.exs @@ -1479,12 +1479,12 @@ test "directly follows back a locked, but followback-allowing local user" do uselective = insert(:user, is_locked: true, permit_followback: true) assert {:ok, uselective, uopen, %{data: %{"state" => "accept"}}} = - CommonAPI.follow(uselective, uopen) + CommonAPI.follow(uopen, uselective) assert User.get_follow_state(uselective, uopen) == :follow_accept assert {:ok, uopen, uselective, %{data: %{"state" => "accept"}}} = - CommonAPI.follow(uopen, uselective) + CommonAPI.follow(uselective, uopen) assert User.get_follow_state(uopen, uselective) == :follow_accept end @@ -1494,12 +1494,12 @@ test "creates a pending request for locked, non-followback local user" do ulocked = insert(:user, is_locked: true, permit_followback: false) assert {:ok, ulocked, uopen, %{data: %{"state" => "accept"}}} = - CommonAPI.follow(ulocked, uopen) + CommonAPI.follow(uopen, ulocked) assert User.get_follow_state(ulocked, uopen) == :follow_accept assert {:ok, uopen, ulocked, %{data: %{"state" => "pending"}}} = - CommonAPI.follow(uopen, ulocked) + CommonAPI.follow(ulocked, uopen) assert User.get_follow_state(uopen, ulocked) == :follow_pending end