ConnCase: Make sure the host we use in tests is the actual Endpoint host

This commit is contained in:
Mark Felder 2023-05-29 13:55:48 -04:00
parent 31ec5cd35e
commit 506a1c98e7
1 changed files with 5 additions and 1 deletions

View File

@ -120,6 +120,10 @@ defp json_response_and_validate_schema(conn, _status) do
Mox.verify_on_exit!() Mox.verify_on_exit!()
{:ok, conn: Phoenix.ConnTest.build_conn()} {:ok,
conn:
Phoenix.ConnTest.build_conn()
|> Map.put(:host, Pleroma.Web.Endpoint.host())
|> Plug.Test.init_test_session(%{})}
end end
end end