Skip to content

Commit 47d4e1c

Browse files
authored
Add more diagnostic output to tests
1 parent fdf4494 commit 47d4e1c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_typed.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
server_is_up = Base.Condition()
1818

19-
server_task = @async begin
19+
server_task = @async try
2020
server = listen(global_socket_name)
2121
notify(server_is_up)
2222
sock = accept(server)
@@ -35,6 +35,8 @@
3535
for msg in conn
3636
JSONRPC.dispatch_msg(conn, msg_dispatcher, msg)
3737
end
38+
catch err
39+
Base.display_error(stderr, err, catch_backtrace())
3840
end
3941

4042
wait(server_is_up)
@@ -63,7 +65,7 @@
6365

6466
server_is_up = Base.Condition()
6567

66-
server_task2 = @async begin
68+
server_task2 = @async try
6769
server = listen(global_socket_name)
6870
notify(server_is_up)
6971
sock = accept(server)
@@ -77,6 +79,8 @@
7779
for msg in conn
7880
@test_throws ErrorException("The handler for the 'request2' request returned a value of type $Int, which is not a valid return type according to the request definition.") JSONRPC.dispatch_msg(conn, msg_dispatcher, msg)
7981
end
82+
catch err
83+
Base.display_error(stderr, err, catch_backtrace())
8084
end
8185

8286
wait(server_is_up)

0 commit comments

Comments
 (0)