chore: Conform to latest rpc-spec 0.1.19 (#3233)

This commit is contained in:
Alex Kremer
2026-09-28 18:07:23 +01:00
committed by GitHub
parent 33241a9b85
commit 5403fbf19c
106 changed files with 370 additions and 345 deletions

View File

@@ -46,7 +46,7 @@ TEST_P(ErrorHandlingComposeErrorTest, composeError)
{
connection_->upgraded = GetParam().connectionUpgraded;
ErrorHelper const errorHelper{connection_, GetParam().request};
auto const result = errorHelper.composeError(rpc::RippledError::RpcNotReady);
auto const result = errorHelper.composeError(rpc::XrpldError::RpcNotReady);
EXPECT_EQ(boost::json::serialize(result), boost::json::serialize(GetParam().expectedResult));
}
@@ -135,7 +135,7 @@ INSTANTIATE_TEST_CASE_P(
ErrorHandlingSendErrorTestBundle{
"UpgradedConnection",
true,
rpc::Status{rpc::RippledError::RpcTooBusy},
rpc::Status{rpc::XrpldError::RpcTooBusy},
R"JSON({"error":"tooBusy","error_code":9,"error_message":"The server is too busy to help you now.","status":"error","type":"response"})JSON",
boost::beast::http::status::ok
},
@@ -177,7 +177,7 @@ INSTANTIATE_TEST_CASE_P(
ErrorHandlingSendErrorTestBundle{
"NotUpgradedConnection_RippledError",
false,
rpc::Status{rpc::RippledError::RpcTooBusy},
rpc::Status{rpc::XrpldError::RpcTooBusy},
R"JSON({"result":{"error":"tooBusy","error_code":9,"error_message":"The server is too busy to help you now.","status":"error","type":"response"}})JSON",
boost::beast::http::status::bad_request
},