Skip to content

Commit

Permalink
fix: Capture a log to clean up test output
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadyan committed Jul 24, 2024
1 parent e0b6846 commit 3ba68a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ defmodule DocumentViewerWeb.AuthControllerTest do
|> get("/auth/cognito/callback")
end)

assert log =~ "Ueberauth error: failed"
assert log =~ "Ueberauth error"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ defmodule DocumentViewerWeb.HealthControllerTest do
assert response.status == 200
end

@tag :capture_log
test "returns 503 when health server is not ready", %{conn: conn} do
{:ok, health_server_pid} = Health.start_link(name: :controller_ready_test)

Expand Down

0 comments on commit 3ba68a8

Please sign in to comment.