diff options
author | Mark Felder <feld@feld.me> | 2023-05-29 13:55:48 -0400 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2023-05-29 13:55:48 -0400 |
commit | 506a1c98e716754455387be9ace3ad7aec9c47a3 (patch) | |
tree | 7b6c285f69caf1eec7a3267ec84e14e076bf52b7 /test | |
parent | 31ec5cd35eece97aa1213c401b40d3ab83689ea9 (diff) | |
download | pleroma-506a1c98e716754455387be9ace3ad7aec9c47a3.tar.gz pleroma-506a1c98e716754455387be9ace3ad7aec9c47a3.zip |
ConnCase: Make sure the host we use in tests is the actual Endpoint host
Diffstat (limited to 'test')
-rw-r--r-- | test/support/conn_case.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index f010fec33..d6729ab87 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -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 |