Fix tests broken by relay default changes
This commit is contained in:
parent
ec1d903f2e
commit
af63f6d65a
|
@ -33,7 +33,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubControllerTest do
|
|||
setup do: clear_config([:instance, :federating], true)
|
||||
|
||||
describe "/relay" do
|
||||
setup do: clear_config([:instance, :allow_relay])
|
||||
setup do: clear_config([:instance, :allow_relay], true)
|
||||
|
||||
test "with the relay active, it returns the relay user", %{conn: conn} do
|
||||
res =
|
||||
|
|
|
@ -22,7 +22,7 @@ defmodule Pleroma.Web.FederatorTest do
|
|||
end
|
||||
|
||||
setup_all do: clear_config([:instance, :federating], true)
|
||||
setup do: clear_config([:instance, :allow_relay])
|
||||
setup do: clear_config([:instance, :allow_relay], true)
|
||||
setup do: clear_config([:mrf, :policies])
|
||||
setup do: clear_config([:mrf_keyword])
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@ defmodule Pleroma.Web.MediaProxy.Invalidation.ScriptTest do
|
|||
assert Invalidation.Script.purge(
|
||||
["http://example.com/media/example.jpg"],
|
||||
script_path: "./example"
|
||||
) == {:error, "%ErlangError{original: :enoent}"}
|
||||
end) =~ "Error while cache purge: %ErlangError{original: :enoent}"
|
||||
) == {:error, "%ErlangError{original: :enoent, reason: nil}"}
|
||||
end) =~ "Error while cache purge: %ErlangError{original: :enoent"
|
||||
|
||||
capture_log(fn ->
|
||||
assert Invalidation.Script.purge(
|
||||
|
|
Loading…
Reference in New Issue