Do not check for log message on client JSON error
@@ -317,13 +317,11 @@ func TestCallerCallClientJSONError(t *testing.T) {
svc := NewService(Opts{SDKRouter: router.New(router.SingleLbrynetServer(ts.URL))})
c := svc.NewCaller("")
- hook := logrus_test.NewLocal(Logger.Logger())
response := c.Call([]byte(`{"method":"version}`))
json.Unmarshal(response, &rpcResponse)
assert.Equal(t, "2.0", rpcResponse.JSONRPC)
assert.Equal(t, ErrJSONParse, rpcResponse.Error.Code)
assert.Equal(t, "unexpected end of JSON input", rpcResponse.Error.Message)
- assert.Equal(t, "error calling lbrynet: unexpected end of JSON input, query: {\"method\":\"version}", hook.LastEntry().Message)
}
func TestQueryParamsAsMap(t *testing.T) {
