Integrate nextgen RPC into clio (#572)

Fixes #592
This commit is contained in:
Alex Kremer
2023-05-04 16:15:36 +01:00
committed by GitHub
parent f1b3a6b511
commit d7d5d61747
145 changed files with 3208 additions and 6756 deletions

View File

@@ -18,7 +18,7 @@
//==============================================================================
#include <rpc/common/AnyHandler.h>
#include <rpc/ngHandlers/Ledger.h>
#include <rpc/handlers/Ledger.h>
#include <util/Fixtures.h>
#include <util/TestObject.h>
@@ -33,7 +33,7 @@ constexpr static auto INDEX2 = "1B8590C01B0006EDFA9ED60296DD052DC5E90F99659B2501
constexpr static auto RANGEMIN = 10;
constexpr static auto RANGEMAX = 30;
using namespace RPCng;
using namespace RPC;
namespace json = boost::json;
using namespace testing;
@@ -170,7 +170,6 @@ TEST_P(LedgerParameterTest, InvalidParams)
auto const output = handler.process(req, Context{std::ref(yield)});
ASSERT_FALSE(output);
auto const err = RPC::makeError(output.error());
std::cout << err << std::endl;
EXPECT_EQ(err.at("error").as_string(), testBundle.expectedError);
EXPECT_EQ(err.at("error_message").as_string(), testBundle.expectedErrorMessage);
});