summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-04-11 19:46:04 +0000
committerrinpatch <rinpatch@sdf.org>2020-05-01 14:31:26 +0300
commit138e6ece1b4185fbe8d8a8f7873ae0c3ee0837e6 (patch)
tree239b7e454bb684a7156ddbb918f4b0188276035c /test/web/common_api/common_api_test.exs
parentfb9ec885cc96e51bd7703d98d8e41305ead56b9e (diff)
downloadpleroma-138e6ece1b4185fbe8d8a8f7873ae0c3ee0837e6.tar.gz
pleroma-138e6ece1b4185fbe8d8a8f7873ae0c3ee0837e6.zip
Merge branch 'following-relationships-optimizations' into 'develop'
FollowingRelationship storage & performance optimizations See merge request pleroma/pleroma!2332
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index 9fe8fc0f3..d4d605251 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -574,7 +574,7 @@ defmodule Pleroma.Web.CommonAPITest do
assert {:ok, follower, followed, %{id: activity_id, data: %{"state" => "pending"}}} =
CommonAPI.follow(follower, followed)
- assert User.get_follow_state(follower, followed) == "pending"
+ assert User.get_follow_state(follower, followed) == :follow_pending
assert {:ok, follower} = CommonAPI.unfollow(follower, followed)
assert User.get_follow_state(follower, followed) == nil
@@ -596,7 +596,7 @@ defmodule Pleroma.Web.CommonAPITest do
assert {:ok, follower, followed, %{id: activity_id, data: %{"state" => "pending"}}} =
CommonAPI.follow(follower, followed)
- assert User.get_follow_state(follower, followed) == "pending"
+ assert User.get_follow_state(follower, followed) == :follow_pending
assert {:ok, follower} = CommonAPI.unfollow(follower, followed)
assert User.get_follow_state(follower, followed) == nil