Skip to content

Commit 6c5f272

Browse files
committed
test: prevent false-positive with fake timers
1 parent 1c156c2 commit 6c5f272

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/utils/misc/wait.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ test('advances timers when set', async () => {
1414

1515
expect(performance.now() - beforeFake).toBe(1000)
1616
jest.useRealTimers()
17-
expect(performance.now() - beforeReal).toBeLessThan(10)
17+
expect(performance.now() - beforeReal).toBeLessThan(1000)
1818
}, 10)

0 commit comments

Comments
 (0)