From 9da81f41c6e2084973095eefebbda3b1abde587c Mon Sep 17 00:00:00 2001 From: Ilja Date: Fri, 17 Jun 2022 17:35:03 +0200 Subject: [PATCH] Fix warning during test user_test.exs Fixed the warning [warning] Please change `clear_config([section], key: value)` to `clear_config([section, key], value)` --- test/pleroma/user_test.exs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/pleroma/user_test.exs b/test/pleroma/user_test.exs index 884b846ae..ea1e45e63 100644 --- a/test/pleroma/user_test.exs +++ b/test/pleroma/user_test.exs @@ -473,12 +473,7 @@ test "it sends a welcome chat message if it is set" do reject_deletes: [] ) - setup do: - clear_config(:mrf, - policies: [ - Pleroma.Web.ActivityPub.MRF.SimplePolicy - ] - ) + setup do: clear_config([:mrf, :policies], [Pleroma.Web.ActivityPub.MRF.SimplePolicy]) test "it sends a welcome chat message when Simple policy applied to local instance" do clear_config([:mrf_simple, :media_nsfw], [{"localhost", ""}])