Skip to content

Commit 1592557

Browse files
author
José Valim
committed
Ensure we can measure a timestamp difference on tests
1 parent f32ede4 commit 1592557

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/mix/test/mix/umbrella_test.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ defmodule Mix.UmbrellaTest do
142142
purge [Foo, Bar]
143143
Mix.Task.clear
144144

145-
ensure_touched("../foo/lib/foo.ex")
145+
# Ensure we can measure a timestamp difference
146+
ensure_touched("../foo/lib/foo.ex",
147+
File.stat!("_build/dev/lib/foo/.compile.lock").mtime)
146148

147149
Mix.Task.run "compile"
148150
assert Mix.Tasks.Compile.Elixir.run([]) == :noop

0 commit comments

Comments
 (0)