aboutsummaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-05-08 03:05:56 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-05-29 16:14:45 +0200
commita43b435c0ad8a1198241fbd18e1a5f1be830f4b5 (patch)
tree4c7806ca08151851fe00651dcaa32902130f637e /test/web
parent2c18830d0dbd7f63cd20dcf5167254fede538930 (diff)
downloadpleroma-a43b435c0ad8a1198241fbd18e1a5f1be830f4b5.tar.gz
AP C2S: allow limit & order on outbox & read_inbox
Diffstat (limited to 'test/web')
-rw-r--r--test/web/activity_pub/activity_pub_controller_test.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/activity_pub/activity_pub_controller_test.exs b/test/web/activity_pub/activity_pub_controller_test.exs
index 3f48553c9..e490a5744 100644
--- a/test/web/activity_pub/activity_pub_controller_test.exs
+++ b/test/web/activity_pub/activity_pub_controller_test.exs
@@ -810,7 +810,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
outbox_endpoint = user.ap_id <> "/outbox"
_posts =
- for i <- 0..15 do
+ for i <- 0..25 do
{:ok, activity} = CommonAPI.post(user, %{status: "post #{i}"})
activity
end
@@ -822,8 +822,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
|> json_response(200)
result_ids = Enum.map(result["orderedItems"], fn x -> x["id"] end)
- assert length(result["orderedItems"]) == 10
- assert length(result_ids) == 10
+ assert length(result["orderedItems"]) == 20
+ assert length(result_ids) == 20
assert result["next"]
assert String.starts_with?(result["next"], outbox_endpoint)