Fix config setting to not affect other tests
authorRoman Chvanikov <chvanikoff@pm.me>
Sat, 30 May 2020 13:47:09 +0000 (16:47 +0300)
committerRoman Chvanikov <chvanikoff@pm.me>
Sat, 30 May 2020 13:47:09 +0000 (16:47 +0300)
test/user_test.exs

index 3556ef1b4de5ecc17e149bd669d801071b49ed95..6b344158d8de9cdd05f0bd9f3ff48f3f8709728e 100644 (file)
@@ -1802,7 +1802,7 @@ defmodule Pleroma.UserTest do
     user = insert(:user)
     assert User.avatar_url(user) =~ "/images/avi.png"
 
-    Pleroma.Config.put([:assets, :default_user_avatar], "avatar.png")
+    clear_config([:assets, :default_user_avatar], "avatar.png")
 
     user = User.get_cached_by_nickname_or_id(user.nickname)
     assert User.avatar_url(user) =~ "avatar.png"