Skip to content

Commit f999f21

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

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

test/error_path_intentionally_fail.jl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,12 @@ mktempdir() do tmpdir
2727
@info "with new PATH" Sys.which("srun")
2828

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

3735
mgr = SlurmClusterManager.SlurmManager()
38-
test_result = @test_throws expected_inner_ex_INSTANCE Distributed.addprocs(mgr)
39-
40-
cfg = ConfigForTestingTaskFailedException(;
41-
expected_outer_ex_T=expected_outer_ex_T,
42-
expected_inner_ex_INSTANCE=expected_inner_ex_INSTANCE,
43-
)
44-
test_task_failed_exception(test_result, cfg)
36+
@test_throws T_expected Distributed.addprocs(mgr)
4537
end
4638
end

0 commit comments

Comments
 (0)