mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-26 08:30:24 +00:00
chore: Update libxrpl to 3.2.0 (#3114)
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
using namespace rpc;
|
||||
using namespace testing;
|
||||
using namespace util::config;
|
||||
namespace json = boost::json;
|
||||
|
||||
namespace {
|
||||
constexpr auto kClientIp = "127.0.0.1";
|
||||
@@ -264,7 +263,7 @@ TEST_P(ShouldForwardParameterTest, Test)
|
||||
auto const rawHandlerProviderPtr = handlerProvider_.get();
|
||||
auto const apiVersion = testBundle.apiVersion;
|
||||
auto const method = testBundle.method;
|
||||
auto const params = json::parse(testBundle.testJson);
|
||||
auto const params = boost::json::parse(testBundle.testJson);
|
||||
|
||||
ON_CALL(*rawHandlerProviderPtr, isClioOnly(_))
|
||||
.WillByDefault(Return(testBundle.mockedIsClioOnly));
|
||||
@@ -294,14 +293,14 @@ TEST_F(RPCForwardingProxyTest, ForwardCallsBalancerWithCorrectParams)
|
||||
auto const rawBalancerPtr = loadBalancer_.get();
|
||||
auto const apiVersion = 2u;
|
||||
auto const method = "submit";
|
||||
auto const params = json::parse(R"JSON({"test": true})JSON");
|
||||
auto const forwarded = json::parse(R"JSON({"test": true, "command": "submit"})JSON");
|
||||
auto const params = boost::json::parse(R"JSON({"test": true})JSON");
|
||||
auto const forwarded = boost::json::parse(R"JSON({"test": true, "command": "submit"})JSON");
|
||||
|
||||
EXPECT_CALL(
|
||||
*rawBalancerPtr,
|
||||
forwardToRippled(forwarded.as_object(), std::make_optional<std::string>(kClientIp), true, _)
|
||||
)
|
||||
.WillOnce(Return(json::object{}));
|
||||
.WillOnce(Return(boost::json::object{}));
|
||||
|
||||
EXPECT_CALL(*rawHandlerProviderPtr, contains(method)).WillOnce(Return(true));
|
||||
|
||||
@@ -332,8 +331,8 @@ TEST_F(RPCForwardingProxyTest, ForwardingFailYieldsErrorStatus)
|
||||
auto const rawBalancerPtr = loadBalancer_.get();
|
||||
auto const apiVersion = 2u;
|
||||
auto const method = "submit";
|
||||
auto const params = json::parse(R"JSON({"test": true})JSON");
|
||||
auto const forwarded = json::parse(R"JSON({"test": true, "command": "submit"})JSON");
|
||||
auto const params = boost::json::parse(R"JSON({"test": true})JSON");
|
||||
auto const forwarded = boost::json::parse(R"JSON({"test": true, "command": "submit"})JSON");
|
||||
|
||||
EXPECT_CALL(
|
||||
*rawBalancerPtr,
|
||||
|
||||
Reference in New Issue
Block a user