Skip to content

Commit

Permalink
Avoid mtime races on compile.app_test.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Dec 10, 2024
1 parent 3bdf5a9 commit 31d8da6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mix/test/mix/tasks/compile.app_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ defmodule Mix.Tasks.Compile.AppTest do
test ".app contains description and registered (as required by systools)" do
in_fixture("no_mixfile", fn ->
Mix.Project.push(MixTest.Case.Sample)
# Pre-create the compilation path to avoid mtime races
File.mkdir_p(Mix.Project.compile_path())

Mix.Tasks.Compile.Elixir.run([])
assert Mix.Tasks.Compile.App.run([]) == {:ok, []}
Expand Down

0 comments on commit 31d8da6

Please sign in to comment.