mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
@@ -383,7 +383,7 @@ TEST_F(RPCAccountHandlerTest, NonExistAccount)
|
||||
// normal case when only provide account
|
||||
TEST_F(RPCAccountHandlerTest, DefaultParameterTest)
|
||||
{
|
||||
constexpr static auto correntOutput = R"({
|
||||
constexpr static auto correctOutput = R"({
|
||||
"account":"rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
|
||||
"ledger_hash":"4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A652",
|
||||
"ledger_index":30,
|
||||
@@ -457,7 +457,7 @@ TEST_F(RPCAccountHandlerTest, DefaultParameterTest)
|
||||
auto handler = AnyHandler{AccountChannelsHandler{this->mockBackendPtr}};
|
||||
auto const output = handler.process(input, yield);
|
||||
ASSERT_TRUE(output);
|
||||
EXPECT_EQ(json::parse(correntOutput), *output);
|
||||
EXPECT_EQ(json::parse(correctOutput), *output);
|
||||
});
|
||||
ctx.run();
|
||||
}
|
||||
@@ -640,7 +640,7 @@ TEST_F(RPCAccountHandlerTest, EmptyChannel)
|
||||
// Return expiration cancel_offer source_tag destination_tag when available
|
||||
TEST_F(RPCAccountHandlerTest, OptionalResponseField)
|
||||
{
|
||||
constexpr static auto correntOutput = R"({
|
||||
constexpr static auto correctOutput = R"({
|
||||
"account":"rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
|
||||
"ledger_hash":"4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A652",
|
||||
"ledger_index":30,
|
||||
@@ -725,7 +725,7 @@ TEST_F(RPCAccountHandlerTest, OptionalResponseField)
|
||||
auto handler = AnyHandler{AccountChannelsHandler{this->mockBackendPtr}};
|
||||
auto const output = handler.process(input, yield);
|
||||
ASSERT_TRUE(output);
|
||||
EXPECT_EQ(json::parse(correntOutput), *output);
|
||||
EXPECT_EQ(json::parse(correctOutput), *output);
|
||||
});
|
||||
ctx.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user