From: Mark Felder Date: Fri, 13 Mar 2020 17:23:14 +0000 (-0500) Subject: Remove test verifying we preserve cache-control headers; we don't X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=db36b48180fda3b0632a5088e45fb0dbf42952c1;p=akkoma Remove test verifying we preserve cache-control headers; we don't --- diff --git a/test/reverse_proxy_test.exs b/test/reverse_proxy_test.exs index f1690ade9..87c6aca4e 100644 --- a/test/reverse_proxy_test.exs +++ b/test/reverse_proxy_test.exs @@ -275,17 +275,6 @@ defmodule Pleroma.ReverseProxyTest do end 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 ClientMock |> expect(:request, fn :get, "/cache", _, _, _ ->