mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Fix test logic error: buy offer should exist after creation regardless of amendment
Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com>
This commit is contained in:
committed by
Mayukha Vadari
parent
be5d105f07
commit
41bfa3819c
@@ -6051,8 +6051,8 @@ class NFTokenBaseUtil_test : public beast::unit_test::suite
|
||||
token::expiration(expiration)); // Also expired
|
||||
env.close();
|
||||
|
||||
std::size_t expectedBuyerCount = amendmentEnabled ? 0 : 1;
|
||||
BEAST_EXPECT(ownerCount(env, buyer) == expectedBuyerCount);
|
||||
// After creating buy offer, it should exist regardless of amendment
|
||||
BEAST_EXPECT(ownerCount(env, buyer) == 1);
|
||||
|
||||
// Try to accept the expired buy offer
|
||||
env(token::acceptBuyOffer(issuer, buyOfferIndex), ter(tecEXPIRED));
|
||||
|
||||
Reference in New Issue
Block a user