Skip to content

Commit b5746e3

Browse files
committed
Update error_path_intentionally_fail.jl
1 parent cdb7e6b commit b5746e3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/error_path_intentionally_fail.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ mktempdir() do tmpdir
2626
withenv(new_env...) do
2727
@info "with new PATH" Sys.which("srun")
2828

29-
expected_outer_ex_T = Base.IOError
30-
expected_inner_ex_INSTANCE = Base.IOError("write: broken pipe (EPIPE)", -32)
29+
if Base.VERSION >= v"1.2-"
30+
expected_outer_ex_T = TaskFailedException
31+
expected_inner_ex_INSTANCE = ErrorException("launch_timeout exceeded")
32+
else
33+
expected_outer_ex_T = Base.IOError
34+
expected_inner_ex_INSTANCE = Base.IOError("write: broken pipe (EPIPE)", -32)
35+
end
3136

3237
mgr = SlurmClusterManager.SlurmManager()
3338
test_result = @test_throws expected_inner_ex_INSTANCE Distributed.addprocs(mgr)

0 commit comments

Comments
 (0)