File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,12 @@ mktempdir() do tmpdir
27
27
@info " with new PATH" Sys. which (" srun" )
28
28
29
29
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
32
31
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
35
33
end
36
34
37
35
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)
45
37
end
46
38
end
You can’t perform that action at this time.
0 commit comments