diff --git a/test/orbit_web/controllers/auth_controller_test.exs b/test/orbit_web/controllers/auth_controller_test.exs index 00abbb5..1eb46bb 100644 --- a/test/orbit_web/controllers/auth_controller_test.exs +++ b/test/orbit_web/controllers/auth_controller_test.exs @@ -36,7 +36,6 @@ defmodule OrbitWeb.AuthControllerTest do assert redirected_to(conn) == "/help" end - @tag capture_log: true test "invalid credentials redirect to /login", %{conn: conn} do conn = get(conn, ~p"/auth/keycloak/callback?#{%{"invalid" => "true"}}") assert redirected_to(conn) == "/login" diff --git a/test/test_helper.exs b/test/test_helper.exs index 95f7a09..c79d851 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1,2 +1,3 @@ -ExUnit.start() +# capture_log hides all logs for passing tests (but not failing tests) +ExUnit.start(capture_log: true) Ecto.Adapters.SQL.Sandbox.mode(Orbit.Repo, :manual)