From ede345f3e9f51d7bdd7ae50c1b579110117d43e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Wed, 27 Nov 2024 21:12:42 +0100 Subject: [PATCH] Clean up app start logs --- lib/mix/test/mix/tasks/app.start_test.exs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/mix/test/mix/tasks/app.start_test.exs b/lib/mix/test/mix/tasks/app.start_test.exs index f378c09e5aa..9a6b001832a 100644 --- a/lib/mix/test/mix/tasks/app.start_test.exs +++ b/lib/mix/test/mix/tasks/app.start_test.exs @@ -13,6 +13,8 @@ defmodule Mix.Tasks.App.StartTest do end end + @moduletag :capture_log + test "compiles and starts the project" do in_fixture("no_mixfile", fn -> Mix.Project.push(AppStartSample) @@ -42,6 +44,8 @@ defmodule Mix.Tasks.App.StartTest do assert List.keyfind(Application.started_applications(), :app_start_sample, 0) assert List.keyfind(Application.started_applications(), :logger, 0) end) + after + Application.stop(:app_start_sample) end describe "unit tests" do