This commit is contained in:
Lain Soykaf 2023-12-30 11:45:16 +04:00
parent 8883fa326a
commit fc910f9bb9

View File

@ -226,8 +226,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatControllerTest do
assert length(result) == 20 assert length(result) == 20
response = response = get(conn, "#{api_endpoint}#{chat.id}/messages?max_id=#{List.last(result)["id"]}")
get(conn, "#{api_endpoint}#{chat.id}/messages?max_id=#{List.last(result)["id"]}")
result = json_response_and_validate_schema(response, 200) result = json_response_and_validate_schema(response, 200)
[next, prev] = get_resp_header(response, "link") |> hd() |> String.split(", ") [next, prev] = get_resp_header(response, "link") |> hd() |> String.split(", ")