Skip to content

Commit d5e6296

Browse files
committed
Add missing purging of GitRepo.Mixfile and extra renaming
1 parent c5cb550 commit d5e6296

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/mix/test/mix/tasks/deps.git_test.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ defmodule Mix.Tasks.DepsGitTest do
151151
File.rm("deps/git_repo/.fetch")
152152
Mix.Task.clear
153153
Mix.shell.flush
154-
purge [A, B, C, GitRepo]
154+
purge [A, B, C, GitRepo, GitRepo.Mixfile]
155155

156156
# Update will mark the update required
157157
Mix.Tasks.Deps.Update.run ["git_repo"]
@@ -186,7 +186,7 @@ defmodule Mix.Tasks.DepsGitTest do
186186
assert_received {:mix_shell, :info, ["All dependencies up to date"]}
187187
end
188188
after
189-
purge [GitRepo, GitRepo.Mix]
189+
purge [GitRepo, GitRepo.Mixfile]
190190
end
191191

192192
test "updates the lock when the repo updates" do
@@ -214,7 +214,7 @@ defmodule Mix.Tasks.DepsGitTest do
214214
refute File.read!("mix.lock") =~ last
215215
end
216216
after
217-
purge [GitRepo, GitRepo.Mix]
217+
purge [GitRepo, GitRepo.Mixfile]
218218
end
219219

220220
test "updates the repo when the lock updates" do
@@ -250,7 +250,7 @@ defmodule Mix.Tasks.DepsGitTest do
250250
refute_received {:mix_shell, :error, _}
251251
end
252252
after
253-
purge [GitRepo, GitRepo.Mix]
253+
purge [GitRepo, GitRepo.Mixfile]
254254
end
255255

256256
test "updates the repo and the lock when the mixfile updates" do
@@ -282,7 +282,7 @@ defmodule Mix.Tasks.DepsGitTest do
282282
refute_received {:mix_shell, :error, _}
283283
end
284284
after
285-
purge [GitRepo, GitRepo.Mix]
285+
purge [GitRepo, GitRepo.Mixfile]
286286
end
287287

288288
test "does not attempt to compile projects that could not be retrieved" do
@@ -309,7 +309,7 @@ defmodule Mix.Tasks.DepsGitTest do
309309
assert File.read!("mix.lock") =~ last
310310
end
311311
after
312-
purge [GitRepo, GitRepo.Mix]
312+
purge [GitRepo, GitRepo.Mixfile]
313313
end
314314

315315
test "does not load bad mixfiles on update" do
@@ -325,7 +325,7 @@ defmodule Mix.Tasks.DepsGitTest do
325325
assert File.read!("mix.lock") =~ last
326326
end
327327
after
328-
purge [GitRepo, GitRepo.Mix]
328+
purge [GitRepo, GitRepo.Mixfile]
329329
end
330330

331331
defp refresh(post_config) do

0 commit comments

Comments
 (0)