Skip to content

Commit

Permalink
Merge pull request #881 from IanButterworth/ib/remove_registry_workar…
Browse files Browse the repository at this point in the history
…ound

Tests: Remove faulty registry install skip given registry install is fast now
  • Loading branch information
pfitzseb authored Jan 16, 2025
2 parents 7baa73d + 92e7196 commit 8f534af
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3121,11 +3121,6 @@ do_test("Switching free/dev") && @testset "Switching free/dev" begin
old_depots = copy(DEPOT_PATH)
empty!(DEPOT_PATH)
push!(DEPOT_PATH, depot)
# Skip cloning the General registry since that is slow and unnecessary
ENV["JULIA_PKG_SERVER"] = ""
registries = isdefined(Pkg.Types, :DEFAULT_REGISTRIES) ? Pkg.Types.DEFAULT_REGISTRIES : Pkg.Registry.DEFAULT_REGISTRIES
old_registries = copy(registries)
empty!(registries)
# Ensure we start fresh with no dependencies
old_project = Base.ACTIVE_PROJECT[]
Base.ACTIVE_PROJECT[] = joinpath(depot, "environments", "v$(VERSION.major).$(VERSION.minor)", "Project.toml")
Expand Down Expand Up @@ -3160,9 +3155,6 @@ do_test("Switching free/dev") && @testset "Switching free/dev" begin
# Restore internal Pkg data
empty!(DEPOT_PATH)
append!(DEPOT_PATH, old_depots)
for pr in old_registries
push!(registries, pr)
end
Base.ACTIVE_PROJECT[] = old_project

push!(to_remove, depot)
Expand Down

0 comments on commit 8f534af

Please sign in to comment.