Skip to content

Commit

Permalink
test: prevent false-positive with fake timers
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Aug 2, 2022
1 parent 1c156c2 commit 6c5f272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/misc/wait.ts
Expand Up @@ -14,5 +14,5 @@ test('advances timers when set', async () => {

expect(performance.now() - beforeFake).toBe(1000)
jest.useRealTimers()
expect(performance.now() - beforeReal).toBeLessThan(10)
expect(performance.now() - beforeReal).toBeLessThan(1000)
}, 10)

0 comments on commit 6c5f272

Please sign in to comment.