We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf1f64 commit 5124e6aCopy full SHA for 5124e6a
src/test/lib/utils/time.test.ts
@@ -8,7 +8,7 @@ describe('Delay', () => {
8
await delay(milliseconds);
9
const end = performance.now();
10
11
- expect(end - start).toBeGreaterThanOrEqual(milliseconds);
+ expect(end - start).toBeGreaterThanOrEqual(milliseconds - 5); // Extend tolerance.
12
});
13
14
it('expected to be resolved immediately if the delay duration is zero', async () => {
0 commit comments