File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ test('times out after 1000ms by default', async () => {
60
60
jest . useRealTimers ( )
61
61
// NOTE: this assertion ensures that the timeout runs in the declared (fake) clock
62
62
// while in real time the time was only a fraction since the real clock is only bound by the CPU.
63
- // So 20ms is really just an approximation on how long the CPU needs to execute our code.
63
+ // So 80ms is really just an approximation on how long the CPU needs to execute our code.
64
64
// If people want to timeout in real time they should rely on their test runners.
65
- expect ( performance . now ( ) - startReal ) . toBeLessThanOrEqual ( 20 )
65
+ expect ( performance . now ( ) - startReal ) . toBeLessThanOrEqual ( 80 )
66
66
} )
67
67
68
68
test ( 'recursive timers do not cause issues' , async ( ) => {
You can’t perform that action at this time.
0 commit comments