Make tests use it
authorMark Felder <feld@feld.me>
Fri, 5 Mar 2021 19:21:22 +0000 (13:21 -0600)
committerMark Felder <feld@feld.me>
Fri, 5 Mar 2021 19:21:22 +0000 (13:21 -0600)
test/pleroma/web/media_proxy_test.exs

index 7411d0a7a6bd0f708b3656f49f8aef065e7c3490..b5ee6328d7aaa25e7fc746ed87d9642f8ae70aff 100644 (file)
@@ -11,8 +11,7 @@ defmodule Pleroma.Web.MediaProxyTest do
   alias Pleroma.Web.MediaProxy
 
   defp decode_result(encoded) do
-    [_, "proxy", sig, base64 | _] = URI.parse(encoded).path |> String.split("/")
-    {:ok, decoded} = MediaProxy.decode_url(sig, base64)
+    {:ok, decoded} = MediaProxy.decode_url(encoded)
     decoded
   end