Test removed HTTP adapter
[akkoma] / lib / pleroma / config / deprecation_warnings.ex
index 33dc925bba42f74f71026403119ae3f63ae51ff1..076b4cbf012c33c3badecf554624ca4f8c2a41bb 100644 (file)
@@ -213,10 +213,15 @@ defmodule Pleroma.Config.DeprecationWarnings do
 
   def check_http_adapter do
     http_adapter = Application.get_env(:tesla, :adapter)
+
     case http_adapter do
       {Tesla.Adapter.Finch, _} ->
         :ok
 
+      Tesla.Mock ->
+        # tests do be testing
+        :ok
+
       _anything_else ->
         Logger.error("""
         !!!CONFIG ERROR!!!
@@ -225,6 +230,7 @@ defmodule Pleroma.Config.DeprecationWarnings do
         Please ensure you either:
         \n* do not have any custom value for `:tesla, :adapter`, or
         \n* have `config :tesla, :adapter, {Tesla.Adapter.Finch, name: MyFinch}`
+        (your current value is #{inspect(http_adapter)})
         """)
 
         :error