Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhe8x authored Nov 1, 2024
1 parent a9a5319 commit 5cf7977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/RewardsBooster_migration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ describe('RewardsBooster Contract', () => {
// 3 block passed (upgrade, migrateDeploymentBoost, collectAllocationReward) since we queried alReward0,
// and 1 of them counts on old rewards, so we should get 500.5 SQT * 103 (availabe secs) / 1003 (total secs) = 51.397308075772681954
// sometimes the test takes longer than 3 sec for 3 blocks, so result may become 52291
expect(evts[0].amount.div((1e15).toString()).toString()).to.be.within(51397, 52291);
expect(evts[0].amount.div((1e15).toString()).toNumber()).to.be.within(51397, 52291);
// 1 block(collectAllocationReward) passed for new reward pool, so we should get 1.25 SQT more
expect(evts[1].amount).to.lt(etherParse('1.25'));
await blockTravel(999);
Expand Down

0 comments on commit 5cf7977

Please sign in to comment.