Skip to content

Commit 8668883

Browse files
authored
Update unit.jl
1 parent 938306b commit 8668883

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@testset "get_slurm_ntasks_int()" begin
2-
c = withenv(SLURM_NTASKS => "12") do
2+
c = withenv("SLURM_NTASKS" => "12") do
33
SlurmClusterManager.get_slurm_ntasks_int()
44
end
55
@test c == 12
@@ -10,17 +10,17 @@
1010
end
1111

1212
@testset "get_slurm_jobid_int()" begin
13-
a = withenv("SLURM_JOB_ID" => "34", SLURM_JOBID => nothing) do
13+
a = withenv("SLURM_JOB_ID" => "34", "SLURM_JOBID" => nothing) do
1414
SlurmClusterManager.get_slurm_jobid_int()
1515
end
1616
@test a == 34
1717

18-
b = withenv("SLURM_JOB_ID" => nothing, SLURM_JOBID => "56") do
18+
b = withenv("SLURM_JOB_ID" => nothing, "SLURM_JOBID" => "56") do
1919
SlurmClusterManager.get_slurm_jobid_int()
2020
end
2121
@test a == 56
2222

23-
withenv("SLURM_JOB_ID" => nothing, SLURM_JOBID => nothing) do
23+
withenv("SLURM_JOB_ID" => nothing, "SLURM_JOBID" => nothing) do
2424
@test_throws ErrorException SlurmClusterManager.get_slurm_jobid_int()
2525
end
2626
end

0 commit comments

Comments
 (0)