Remove test verifying we preserve cache-control headers; we don't
This commit is contained in:
parent
470090471d
commit
db36b48180
1 changed files with 0 additions and 11 deletions
|
@ -275,17 +275,6 @@ defmodule Pleroma.ReverseProxyTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "cache resp headers" do
|
describe "cache resp headers" do
|
||||||
test "returns headers", %{conn: conn} do
|
|
||||||
ClientMock
|
|
||||||
|> expect(:request, fn :get, "/cache/" <> ttl, _, _, _ ->
|
|
||||||
{:ok, 200, [{"cache-control", "public, max-age=" <> ttl}], %{}}
|
|
||||||
end)
|
|
||||||
|> expect(:stream_body, fn _ -> :done end)
|
|
||||||
|
|
||||||
conn = ReverseProxy.call(conn, "/cache/10")
|
|
||||||
assert {"cache-control", "public, max-age=10"} in conn.resp_headers
|
|
||||||
end
|
|
||||||
|
|
||||||
test "add cache-control", %{conn: conn} do
|
test "add cache-control", %{conn: conn} do
|
||||||
ClientMock
|
ClientMock
|
||||||
|> expect(:request, fn :get, "/cache", _, _, _ ->
|
|> expect(:request, fn :get, "/cache", _, _, _ ->
|
||||||
|
|
Loading…
Reference in a new issue