fix tests

This commit is contained in:
Phantasm 2026-05-12 16:48:49 +02:00
commit 90e390e45b
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8

View file

@ -119,7 +119,10 @@ defmodule Pleroma.Web.ConnCase do
DataCase.stub_pipeline() DataCase.stub_pipeline()
Mox.verify_on_exit!() Mox.verify_on_exit!()
endpoint = URI.parse(Pleroma.Web.Endpoint.url())
conn = Phoenix.ConnTest.build_conn()
conn = %{conn | req_headers: [{"host", "#{endpoint.host}:#{endpoint.port}"}]}
{:ok, conn: Phoenix.ConnTest.build_conn()} {:ok, conn: conn}
end end
end end