ConnCase: Make sure the host we use in tests is the actual Endpoint host
This commit is contained in:
parent
31ec5cd35e
commit
506a1c98e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user