File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 22
33const common = require ( '../common' ) ;
44const fs = require ( 'fs' ) ;
5+ const commonTimeout = common . platformTimeout ;
56
67const t1 = setInterval ( ( ) => {
7- common . busyLoop ( 12 ) ;
8- } , 10 ) ;
8+ common . busyLoop ( commonTimeout ( 12 ) ) ;
9+ } , common . platformTimeout ( 10 ) ) ;
910
1011const t2 = setInterval ( ( ) => {
11- common . busyLoop ( 15 ) ;
12- } , 10 ) ;
12+ common . busyLoop ( commonTimeout ( 15 ) ) ;
13+ } , commonTimeout ( 10 ) ) ;
1314
14- const t3 = setTimeout ( common . mustNotCall ( 'eventloop blocked!' ) , 100 ) ;
15+ const t3 =
16+ setTimeout ( common . mustNotCall ( 'eventloop blocked!' ) , commonTimeout ( 200 ) ) ;
1517
1618setTimeout ( function ( ) {
17- fs . stat ( './ nonexistent.txt ' , ( err , stats ) => {
19+ fs . stat ( '/dev/ nonexistent' , ( err , stats ) => {
1820 clearInterval ( t1 ) ;
1921 clearInterval ( t2 ) ;
2022 clearTimeout ( t3 ) ;
2123 } ) ;
22- } , 50 ) ;
24+ } , commonTimeout ( 50 ) ) ;
You can’t perform that action at this time.
0 commit comments