mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-11-16 22:26:16 +01:00
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