Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
  • Loading branch information
quiet-node committed Oct 12, 2024
1 parent 9d127ae commit 2d6eb18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/server/tests/acceptance/hbarLimiter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2d6eb18

Please sign in to comment.