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 () => {
6060 jest . useRealTimers ( )
6161 // NOTE: this assertion ensures that the timeout runs in the declared (fake) clock
6262 // 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.
6464 // 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 )
6666} )
6767
6868test ( 'recursive timers do not cause issues' , async ( ) => {
You can’t perform that action at this time.
0 commit comments