Elixir 1.19: Add note to deprecation warnings test
The Logger does not get reconfigured when running in the test env, the added and on_exit removed settings below should have no effect besides triggering the deprecation warnings. To make breakage even less possible, async is turned off for these tests. TransferTask test does almost the same with the Application env.
This commit is contained in:
parent
a12f9777f8
commit
01b139c633
1 changed files with 3 additions and 0 deletions
|
|
@ -396,6 +396,9 @@ defmodule Pleroma.Config.DeprecationWarningsTest do
|
|||
initial_console = Application.get_env(:logger, :console, nil)
|
||||
initial_backends = Application.get_env(:logger, :backends, nil)
|
||||
|
||||
# NOTE: The Logger does not get reconfigured when running in the test env,
|
||||
# the added and on_exit removed settings below should have no effect besides
|
||||
# triggering the deprecation warnings
|
||||
Application.put_env(:logger, :console, level: :all)
|
||||
Application.put_env(:logger, :backends, [:console])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue