We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 911acc3 commit 272be2cCopy full SHA for 272be2c
lib/mix/test/mix/tasks/local_test.exs
@@ -49,7 +49,14 @@ defmodule Mix.Tasks.LocalTest do
49
send self, {:mix_shell_input, :yes?, true}
50
Mix.Tasks.Local.Install.run []
51
assert File.regular? tmp_path("userhome/.mix/archives/archive-0.2.0.ez")
52
- refute File.regular? tmp_path("userhome/.mix/archives/archive-0.1.0.ez")
+
53
+ # We don't do the assertion below on Windows because
54
+ # the archive is open by Erlang code server and the archive
55
+ # is not effectively removed until the Erlang process exits.
56
+ unless match? {:win32, _}, :os.type do
57
+ refute File.regular? tmp_path("userhome/.mix/archives/archive-0.1.0.ez")
58
+ end
59
60
Mix.Local.append_archives
61
62
# Remove it!
0 commit comments