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

View File

@ -120,6 +120,10 @@ defmodule Pleroma.Web.ConnCase do
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