Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae30922

Browse files
authoredFeb 7, 2025··
Update unit.jl
1 parent 8668883 commit ae30922

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎test/unit.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
@testset "get_slurm_ntasks_int()" begin
2-
c = withenv("SLURM_NTASKS" => "12") do
2+
x = withenv("SLURM_NTASKS" => "12") do
33
SlurmClusterManager.get_slurm_ntasks_int()
44
end
5-
@test c == 12
5+
@test x == 12
66

77
withenv("SLURM_NTASKS" => nothing) do
88
@test_throws ErrorException SlurmClusterManager.get_slurm_ntasks_int()
99
end
1010
end
1111

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

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

2323
withenv("SLURM_JOB_ID" => nothing, "SLURM_JOBID" => nothing) do
2424
@test_throws ErrorException SlurmClusterManager.get_slurm_jobid_int()

0 commit comments

Comments
 (0)
Please sign in to comment.