From 41bfa3819c0097654de28dbefdc04b73d17dfb84 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 Aug 2025 13:41:24 +0000 Subject: [PATCH] Fix test logic error: buy offer should exist after creation regardless of amendment Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com> --- src/test/app/NFToken_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/app/NFToken_test.cpp b/src/test/app/NFToken_test.cpp index 8948ff8eb8..cd03970d4c 100644 --- a/src/test/app/NFToken_test.cpp +++ b/src/test/app/NFToken_test.cpp @@ -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));