Skip to content

Commit 2638f9d

Browse files
committed
Test suite: Add more test coverage for warn_if_unexpected_params()
1 parent ae30922 commit 2638f9d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unit.jl

+8
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,11 @@ end
2424
@test_throws ErrorException SlurmClusterManager.get_slurm_jobid_int()
2525
end
2626
end
27+
28+
@testset "warn_if_unexpected_params()" begin
29+
params = Dict(:env => ["foo" => "bar"])
30+
@test_logs(
31+
(:warn, "The user provided the `env` kwarg, but SlurmClusterManager.jl's support for the `env` kwarg requires Julia 1.6 or later"),
32+
SlurmClusterManager.warn_if_unexpected_params(params),
33+
)
34+
end

0 commit comments

Comments
 (0)