Fix nfts_by_issuer's DB issue (#997)

Fix #988
This commit is contained in:
cyan317
2023-11-22 15:55:46 +00:00
committed by GitHub
parent b998473673
commit f0224581a5
4 changed files with 32 additions and 72 deletions

View File

@@ -321,16 +321,6 @@ TEST_F(RPCNFTsByIssuerHandlerTest, NonExistLedgerViaLedgerIndex2)
// normal case when issuer does not exist or has no NFTs
TEST_F(RPCNFTsByIssuerHandlerTest, AccountNotFound)
{
auto const currentOutput = fmt::format(
R"({{
"issuer": "{}",
"limit":50,
"ledger_index": 30,
"nfts": [],
"validated": true
}})",
ACCOUNT
);
MockBackend* rawBackendPtr = dynamic_cast<MockBackend*>(mockBackendPtr.get());
ASSERT_NE(rawBackendPtr, nullptr);
mockBackendPtr->updateRange(10); // min
@@ -667,4 +657,4 @@ TEST_F(RPCNFTsByIssuerHandlerTest, LimitMoreThanMAx)
ASSERT_TRUE(output);
EXPECT_EQ(json::parse(currentOutput), *output);
});
}
}