projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2731ea1
)
fix test
author
Maksim Pechnikov
<parallel588@gmail.com>
Thu, 18 Jun 2020 02:02:33 +0000
(
05:02
+0300)
committer
Maksim Pechnikov
<parallel588@gmail.com>
Thu, 18 Jun 2020 02:06:28 +0000
(
05:06
+0300)
lib/pleroma/web/media_proxy/invalidation.ex
patch
|
blob
|
history
test/web/media_proxy/invalidations/http_test.exs
patch
|
blob
|
history
test/web/media_proxy/invalidations/script_test.exs
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/media_proxy/invalidation.ex
b/lib/pleroma/web/media_proxy/invalidation.ex
index 6da7eb720ac9349ad01bdc567d1ddb4dae438619..5808861e692b15a27b5e38506a2c05d953111270 100644
(file)
--- a/
lib/pleroma/web/media_proxy/invalidation.ex
+++ b/
lib/pleroma/web/media_proxy/invalidation.ex
@@
-26,7
+26,8
@@
defmodule Pleroma.Web.MediaProxy.Invalidation do
defp do_purge(urls) do
provider = Config.get([:media_proxy, :invalidation, :provider])
- provider.purge(urls, Config.get(provider))
+ options = Config.get(provider)
+ provider.purge(urls, options)
end
def prepare_urls(urls) do
diff --git
a/test/web/media_proxy/invalidations/http_test.exs
b/test/web/media_proxy/invalidations/http_test.exs
index 9d181dd8b2b7152c7865129025b27f186a086a53..a1bef5237d731fcccc8da633db3f67a8935af403 100644
(file)
--- a/
test/web/media_proxy/invalidations/http_test.exs
+++ b/
test/web/media_proxy/invalidations/http_test.exs
@@
-6,7
+6,7
@@
defmodule Pleroma.Web.MediaProxy.Invalidation.HttpTest do
import Tesla.Mock
setup do
- on_exit(fn -> Cachex.clear(:
delet
ed_urls_cache) end)
+ on_exit(fn -> Cachex.clear(:
bann
ed_urls_cache) end)
end
test "logs hasn't error message when request is valid" do
diff --git
a/test/web/media_proxy/invalidations/script_test.exs
b/test/web/media_proxy/invalidations/script_test.exs
index 8e155b705c6ad70b5c2aab5241fe5bb188f51fe0..51833ab18a0519aebbfc747eedbabb3540fb9afc 100644
(file)
--- a/
test/web/media_proxy/invalidations/script_test.exs
+++ b/
test/web/media_proxy/invalidations/script_test.exs
@@
-5,7
+5,7
@@
defmodule Pleroma.Web.MediaProxy.Invalidation.ScriptTest do
import ExUnit.CaptureLog
setup do
- on_exit(fn -> Cachex.clear(:
delet
ed_urls_cache) end)
+ on_exit(fn -> Cachex.clear(:
bann
ed_urls_cache) end)
end
test "it logger error when script not found" do