Skip to content

Commit

Permalink
Allow errors and warnings in test env (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk authored Oct 1, 2024
1 parent 6419141 commit 24640fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import Config

config :bcrypt_elixir, log_rounds: 4

config :logger, :default_handler, false
# Print only warnings and errors during test
config :logger, level: :warning

##
# NervesHub Web
Expand Down
4 changes: 1 addition & 3 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Logger.remove_backend(:console)

ExUnit.start(exclude: [:pending])
ExUnit.start(capture_log: true, exclude: [:pending])

Ecto.Adapters.SQL.Sandbox.mode(NervesHub.Repo, :manual)

0 comments on commit 24640fb

Please sign in to comment.