Skip to content

Commit 37b3308

Browse files
committed
Remove unusued params
1 parent f386431 commit 37b3308

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/json_rpc_handler_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,11 @@
268268
end
269269

270270
it "returns an error with the code set to -32603 when there is an internal error" do
271-
register("add") do |_params|
271+
register("add") do
272272
raise StandardError, "Something bad happened"
273273
end
274274

275-
handle({ jsonrpc: "2.0", id: 1, method: "add", params: { a: 1, b: 2 } })
275+
handle({ jsonrpc: "2.0", id: 1, method: "add" })
276276

277277
assert_rpc_error(expected_error: { code: -32603, message: "Internal error", data: "Something bad happened" })
278278
end

0 commit comments

Comments
 (0)