summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2023-05-29 13:55:48 -0400
committerMark Felder <feld@feld.me>2023-05-29 13:55:48 -0400
commit506a1c98e716754455387be9ace3ad7aec9c47a3 (patch)
tree7b6c285f69caf1eec7a3267ec84e14e076bf52b7
parent31ec5cd35eece97aa1213c401b40d3ab83689ea9 (diff)
ConnCase: Make sure the host we use in tests is the actual Endpoint host
-rw-r--r--test/support/conn_case.ex6
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