Skip to content

Commit

Permalink
fixup! Add support for DistributedNext
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Dec 3, 2024
1 parent 8b14e73 commit e5160ea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/preferences.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Preferences: load_preference, set_preferences!

@testset "Preferences" begin
cmd = `$(Base.julia_cmd()) --startup-file=no --project -E 'using Dagger; parentmodule(Dagger.myid)'`

try
# Disabling the precompilation workload shaves off over half the time
# this test takes.
set_preferences!(Dagger, "precompile_workload" => false; force=true)

cd(dirname(Base.active_project())) do
Dagger.set_distributed_package!("Distributed")
@test readchomp(cmd) == "Distributed"

Dagger.set_distributed_package!("DistributedNext")
@test readchomp(cmd) == "DistributedNext"
end
finally
set_preferences!(Dagger, "precompile_workload" => false; force=true)
end
end

0 comments on commit e5160ea

Please sign in to comment.