8 lines
425 B
JavaScript
8 lines
425 B
JavaScript
// These tests trigger various 'internal error' conditions.
|
|
|
|
--> {"jsonrpc":"2.0","id":1,"method":"test_marshalError","params": []}
|
|
<-- {"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"json: error calling MarshalText for type *rpc.MarshalErrObj: marshal error"}}
|
|
|
|
--> {"jsonrpc":"2.0","id":2,"method":"test_panic","params": []}
|
|
<-- {"jsonrpc":"2.0","id":2,"error":{"code":-32603,"message":"method handler crashed"}}
|