Skip to content

Commit 4d1090a

Browse files
tidy up Base.active_project_callbacks earlier to avoid error log
1 parent a437d7f commit 4d1090a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/loading.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ append!(empty!(DEPOT_PATH), [mktempdir(), joinpath(@__DIR__, "depot")])
234234
@test watcher_counter[] == 0
235235
@test_logs (:error, r"active project callback .* failed") Base.set_active_project(nothing)
236236
@test watcher_counter[] == 1
237+
pop!(Base.active_project_callbacks)
237238

238239
@test load_path() == [joinpath(@__DIR__, "project", "Project.toml")]
239240

@@ -732,7 +733,7 @@ end
732733

733734
append!(empty!(LOAD_PATH), saved_load_path)
734735
append!(empty!(DEPOT_PATH), saved_depot_path)
735-
for _ = 1:2 pop!(Base.active_project_callbacks) end
736+
pop!(Base.active_project_callbacks)
736737
Base.set_active_project(saved_active_project)
737738
@test watcher_counter[] == 3
738739

0 commit comments

Comments
 (0)