Skip to content

Commit b04b542

Browse files
authored
Test suite: Add more test coverage for warn_if_unexpected_params() (only on Julia versions prior to 1.6)
1 parent 4b6d126 commit b04b542

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/runtests.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,16 @@ end
6060
println("# END script output")
6161

6262
end # testset "SlurmClusterManager.jl"
63+
64+
@testset "warn_if_unexpected_params()" begin
65+
if Base.VERSION >= v"1.6"
66+
# This test is not relevant for Julia 1.6+
67+
else
68+
params = Dict(:env => ["foo" => "bar"])
69+
SlurmClusterManager.warn_if_unexpected_params(params)
70+
@test_logs(
71+
(:warn, "The user provided the `env` kwarg, but SlurmClusterManager.jl's support for the `env` kwarg requires Julia 1.6 or later"),
72+
SlurmClusterManager.warn_if_unexpected_params(params),
73+
)
74+
end
75+
end

0 commit comments

Comments
 (0)