Skip to content

Commit 356bd07

Browse files
committed
Fix tests
1 parent 71f78e4 commit 356bd07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_typed.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ end
128128
server_is_up = Base.Condition()
129129

130130
JSONRPC.@message_dispatcher my_dispatcher begin
131-
request1_type => (conn, params, token) -> begin
131+
request1_type => (params, token) -> begin
132132
params.fieldA == 1 ? "YES" : "NO"
133133
end
134-
request2_type => (conn, params, token) -> JSONRPC.JSONRPCError(-32600, "Our message", nothing)
135-
notify1_type => (conn, params) -> global g_var = params[1]
134+
request2_type => (params, token) -> JSONRPC.JSONRPCError(-32600, "Our message", nothing)
135+
notify1_type => (params) -> global g_var = params[1]
136136
end
137137

138138
server_task = @async try
@@ -180,7 +180,7 @@ end
180180
server_is_up = Base.Condition()
181181

182182
JSONRPC.@message_dispatcher my_dispatcher2 begin
183-
request2_type => (conn, params, token) -> 34 # The request type requires a `String` return, so this tests whether we get an error.
183+
request2_type => (params, token) -> 34 # The request type requires a `String` return, so this tests whether we get an error.
184184
end
185185

186186
server_task2 = @async try

0 commit comments

Comments
 (0)