Skip to content

Commit 5124e6a

Browse files
committed
🐛 Try to fix flaky tests (#1488)
1 parent 6bf1f64 commit 5124e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/lib/utils/time.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('Delay', () => {
88
await delay(milliseconds);
99
const end = performance.now();
1010

11-
expect(end - start).toBeGreaterThanOrEqual(milliseconds);
11+
expect(end - start).toBeGreaterThanOrEqual(milliseconds - 5); // Extend tolerance.
1212
});
1313

1414
it('expected to be resolved immediately if the delay duration is zero', async () => {

0 commit comments

Comments
 (0)