From: Ivan Tashkinov Date: Sun, 6 Sep 2020 12:30:11 +0000 (+0300) Subject: [#2497] Fixed MediaProxyWarmingPolicyTest. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=759f8bc3ae49580319a4ecb12770e8581826c6d9;p=akkoma [#2497] Fixed MediaProxyWarmingPolicyTest. --- diff --git a/test/web/activity_pub/mrf/mediaproxy_warming_policy_test.exs b/test/web/activity_pub/mrf/mediaproxy_warming_policy_test.exs index 313d59a66..1710c4d2a 100644 --- a/test/web/activity_pub/mrf/mediaproxy_warming_policy_test.exs +++ b/test/web/activity_pub/mrf/mediaproxy_warming_policy_test.exs @@ -22,6 +22,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicyTest do } } + setup do: clear_config([:media_proxy, :enabled], true) + test "it prefetches media proxy URIs" do with_mock HTTP, get: fn _, _, _ -> {:ok, []} end do MediaProxyWarmingPolicy.filter(@message)