diff --git a/packages/server/tests/acceptance/hbarLimiter.spec.ts b/packages/server/tests/acceptance/hbarLimiter.spec.ts index 069c57079..426923546 100644 --- a/packages/server/tests/acceptance/hbarLimiter.spec.ts +++ b/packages/server/tests/acceptance/hbarLimiter.spec.ts @@ -422,6 +422,12 @@ describe('@hbarlimiter HBAR Limiter Acceptance Tests', function () { const basicSpendingLimit = HbarLimitService.TIER_LIMITS[SubscriptionTier.BASIC]; const amountSpent = spendingPlanAssociated.amountSpent; + this.logger.info(`ethSpendingPlan.planId: ${ethSpendingPlan.planId}`); + this.logger.info(`amountSpent: ${amountSpent}`); + this.logger.info(`estimatedTxFee: ${estimatedTxFee}`); + this.logger.info(`basicSpendingLimit: ${basicSpendingLimit}`); + this.logger.info(`spendingPlanAssociated: ${spendingPlanAssociated}`); + // Explanation: A preemptive rate limit check triggers the HBAR_RATE_LIMIT_EXCEED error when basicSpendingLimit < estimatedTxFee + amountSpent. expect(basicSpendingLimit.toTinybars().toNumber()).to.be.lt(estimatedTxFee + amountSpent); }