mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-28 17:40:20 +00:00
chore: Update libxrpl to 3.2.0 (#3114)
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include <boost/beast/core/buffers_to_string.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/beast/http/status.hpp>
|
||||
#include <boost/beast/http/string_body.hpp>
|
||||
#include <boost/beast/http/string_body_fwd.hpp>
|
||||
#include <boost/beast/http/verb.hpp>
|
||||
#include <boost/json/object.hpp>
|
||||
#include <boost/json/parse.hpp>
|
||||
@@ -93,7 +93,7 @@ TEST_F(NgRpcServerHandlerTest, DosguardRejectedHttpRequest)
|
||||
EXPECT_EQ(responseHttp.result(), http::status::service_unavailable);
|
||||
|
||||
auto const responseJson = boost::json::parse(responseHttp.body()).as_object();
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::rpcSLOW_DOWN);
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::RpcSlowDown);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ TEST_F(NgRpcServerHandlerTest, DosguardRejectedWsRequest)
|
||||
auto const responseWs = boost::beast::buffers_to_string(response.asWsResponse());
|
||||
|
||||
auto const responseJson = boost::json::parse(responseWs).as_object();
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::rpcSLOW_DOWN);
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::RpcSlowDown);
|
||||
EXPECT_EQ(responseJson.at("request").as_string(), requestStr);
|
||||
});
|
||||
}
|
||||
@@ -126,7 +126,7 @@ TEST_F(NgRpcServerHandlerTest, DosguardRejectedWsJsonRequest)
|
||||
auto const responseWs = boost::beast::buffers_to_string(response.asWsResponse());
|
||||
|
||||
auto const responseJson = boost::json::parse(responseWs).as_object();
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::rpcSLOW_DOWN);
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::RpcSlowDown);
|
||||
EXPECT_EQ(responseJson.at("request").as_string(), requestStr);
|
||||
EXPECT_EQ(responseJson.at("id").as_string(), "some id");
|
||||
});
|
||||
@@ -218,7 +218,7 @@ TEST_F(NgRpcServerHandlerTest, DosguardRejectedParsedRequest)
|
||||
EXPECT_EQ(responseHttp.result(), http::status::service_unavailable);
|
||||
|
||||
auto const responseJson = boost::json::parse(responseHttp.body()).as_object();
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::rpcSLOW_DOWN);
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::RpcSlowDown);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ TEST_F(NgRpcServerHandlerTest, DosguardAddsLoadWarning)
|
||||
EXPECT_EQ(responseHttp.result(), http::status::service_unavailable);
|
||||
|
||||
auto const responseJson = boost::json::parse(responseHttp.body()).as_object();
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::rpcSLOW_DOWN);
|
||||
EXPECT_EQ(responseJson.at("error_code").as_int64(), rpc::RippledError::RpcSlowDown);
|
||||
|
||||
EXPECT_EQ(responseJson.at("warning").as_string(), "load");
|
||||
EXPECT_EQ(
|
||||
|
||||
Reference in New Issue
Block a user