Skip to content

Commit 3c2b16d

Browse files
authored
Merge pull request #10 from julia-vscode/propagate-errors
Propagate errors properly
2 parents 9fa0a5f + f8c5968 commit 3c2b16d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

testprocess/TestItemServer/src/TestItemServer.jl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ function run_testitem(endpoint, params::TestItemServerProtocol.RunTestItem, mode
354354
end
355355
elapsed_time = (time_ns() - t0) / 1e6 # Convert to milliseconds
356356
end
357+
358+
return nothing
357359
catch err
358360
elapsed_time = (time_ns() - t0) / 1e6 # Convert to milliseconds
359361

@@ -398,12 +400,20 @@ function run_testitem(endpoint, params::TestItemServerProtocol.RunTestItem, mode
398400
@static if VERSION < v"1.13.0-"
399401
Test.push_testset(ts)
400402

401-
inner_test_function()
403+
ret = inner_test_function()
404+
405+
if ret !== nothing
406+
return ret
407+
end
402408

403409
ts = Test.pop_testset()
404410
else
405411
Test.@with_testset ts begin
406-
inner_test_function()
412+
ret = inner_test_function()
413+
414+
if ret !== nothing
415+
return ret
416+
end
407417
end
408418
end
409419

0 commit comments

Comments
 (0)