Add test for check_activity_expiration_config/0

This commit is contained in:
Mark Felder 2020-09-22 11:34:51 -05:00
parent 7775b1540f
commit 88653c01c9

View file

@ -82,6 +82,14 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
end) =~ "You are using the old configuration mechanism for the hellthread filter." end) =~ "You are using the old configuration mechanism for the hellthread filter."
end end
test "check_activity_expiration_config/0" do
clear_config([Pleroma.ActivityExpiration, :enabled], true)
assert capture_log(fn ->
DeprecationWarnings.check_activity_expiration_config()
end) =~ "Your config is using old namespace for activity expiration configuration."
end
describe "check_gun_pool_options/0" do describe "check_gun_pool_options/0" do
test "await_up_timeout" do test "await_up_timeout" do
config = Config.get(:connections_pool) config = Config.get(:connections_pool)