Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Make delay test threshold flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
priojeetpriyom committed Oct 6, 2023
1 parent 4fb2431 commit b2778ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/blockchain-connector/tests/unit/delay.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ describe('Test delay method', () => {
await delay(delayMs);
const endTime = Date.now();
const millisDifference = endTime - startTime;
expect(millisDifference).toBeGreaterThanOrEqual(delayMs);
expect(millisDifference).toBeGreaterThanOrEqual(delayMs * 0.98);
});
});

0 comments on commit b2778ca

Please sign in to comment.