Skip to content

Commit

Permalink
use greater than or equal
Browse files Browse the repository at this point in the history
  • Loading branch information
swain committed Nov 29, 2023
1 parent f1d23a9 commit cd262fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kinesis.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ describe('KinesisEventHandler', () => {

// This assertion confirms that the group doesn't process in less than 200ms.
// If it did, then the events would be fully parallelized, which would be bad.
expect(end - start).toBeGreaterThan(200);
expect(end - start).toBeGreaterThanOrEqual(200);

// This assertion confirms that there is at least some parallelization happening.
expect(end - start).toBeLessThanOrEqual(450);
Expand Down
2 changes: 1 addition & 1 deletion src/sqs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ describe('SQSMessageHandler', () => {

// This assertion confirms that the group doesn't process in less than 200ms.
// If it did, then the events would be fully parallelized, which would be bad.
expect(end - start).toBeGreaterThan(200);
expect(end - start).toBeGreaterThanOrEqual(200);

// This assertion confirms that there is at least some parallelization happening.
expect(end - start).toBeLessThanOrEqual(450);
Expand Down

0 comments on commit cd262fc

Please sign in to comment.