Skip to content

Commit afc99e2

Browse files
committed
Fix local installer warnings
1 parent ede345f commit afc99e2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/mix/test/mix/local/installer_test.exs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ defmodule Mix.Local.InstallerTest do
2626
assert config[:app] == :git_repo
2727
assert config[:deps_path] =~ ~r/mix-local-installer-fetcher-.*\/deps/
2828
assert config[:lockfile] =~ ~r/mix-local-installer-fetcher-.*\/mix.lock/
29+
after
30+
purge([GitRepo.MixProject, Mix.Local.Installer.MixProject])
2931
end
3032

3133
test "parse_args Git" do

lib/mix/test/mix/tasks/archive_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ defmodule Mix.Tasks.ArchiveTest do
172172
assert File.dir?(tmp_path("userhome/.mix/archives/git_repo-0.1.0/git_repo-0.1.0/ebin"))
173173
end)
174174
after
175-
purge([GitRepo.Archive, GitRepo.MixProject])
175+
purge([GitRepo.Archive, GitRepo.MixProject, Mix.Local.Installer.MixProject])
176176
end
177177

178178
test "archive install, update, and uninstall life cycle" do

lib/mix/test/mix/tasks/escript_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ defmodule Mix.Tasks.EscriptTest do
336336
require Application
337337
true = Application.compile_env!(:git_repo, :escript_config)
338338
339-
defmodule GitRepo do
339+
defmodule GitRepo.Escript do
340340
def main(_argv) do
341341
IO.puts("TEST")
342342
end
@@ -348,7 +348,7 @@ defmodule Mix.Tasks.EscriptTest do
348348
use Mix.Project
349349
350350
def project do
351-
[app: :git_repo, version: "0.1.0", escript: [main_module: GitRepo]]
351+
[app: :git_repo, version: "0.1.0", escript: [main_module: GitRepo.Escript]]
352352
end
353353
end
354354
""")
@@ -364,7 +364,7 @@ defmodule Mix.Tasks.EscriptTest do
364364
assert System.cmd("escript", [escript_path]) == {"TEST\n", 0}
365365
end)
366366
after
367-
purge([GitRepo, GitRepo.MixProject])
367+
purge([GitRepo.Escript, GitRepo.MixProject, Mix.Local.Installer.MixProject])
368368
end
369369

370370
defp push_project_with_config(module, config \\ []) do

0 commit comments

Comments
 (0)