logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 506a1c98e716754455387be9ace3ad7aec9c47a3
parent 31ec5cd35eece97aa1213c401b40d3ab83689ea9
Author: Mark Felder <feld@feld.me>
Date:   Mon, 29 May 2023 13:55:48 -0400

ConnCase: Make sure the host we use in tests is the actual Endpoint host

Diffstat:

Mtest/support/conn_case.ex6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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