Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
animir committed Dec 8, 2023
1 parent 46eef7f commit 58a71ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/RateLimiterQueue.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('RateLimiterQueue with FIFO queue', function RateLimiterQueueTest() {
rlQueue.removeTokens(1)
.then((remainingTokens) => {
expect(remainingTokens).to.equal(0);
expect(Date.now() - startTime >= 1000).to.equal(true);
expect(Date.now() - startTime >= 999).to.equal(true);
done();
});
});
Expand Down Expand Up @@ -85,7 +85,7 @@ describe('RateLimiterQueue with FIFO queue', function RateLimiterQueueTest() {
rlQueue.removeTokens(1).then(() => {
rlQueue.removeTokens(1).then((remainingTokens) => {
expect(remainingTokens).to.equal(0);
expect(Date.now() - time >= 1000).to.equal(true);
expect(Date.now() - time >= 999).to.equal(true);
done();
});
});
Expand Down

0 comments on commit 58a71ab

Please sign in to comment.