@@ -63,7 +63,7 @@ describe('install', function () {
6363 } )
6464
6565 afterEach ( async ( ) => {
66- await rm ( prog . devDir , { recursive : true , force : true } )
66+ await rm ( prog . devDir , { recursive : true , force : true , maxRetries : 3 } )
6767 prog = null
6868 } )
6969
@@ -74,14 +74,16 @@ describe('install', function () {
7474 }
7575
7676 return it ( name , async function ( ) {
77- this . timeout ( platformTimeout ( 1 , { win32 : 20 } ) )
78- const start = Date . now ( )
77+ this . timeout ( platformTimeout ( 2 , { win32 : 20 } ) )
7978 await fn . call ( this )
8079 const expectedDir = path . join ( prog . devDir , process . version . replace ( / ^ v / , '' ) )
81- await rm ( expectedDir , { recursive : true , force : true } )
80+ await rm ( expectedDir , { recursive : true , force : true , maxRetries : 3 } )
8281 await Promise . all ( new Array ( 10 ) . fill ( 0 ) . map ( async ( _ , i ) => {
82+ const title = `${ ' ' . repeat ( 8 ) } ${ name } ${ ( i + 1 ) . toString ( ) . padEnd ( 2 , ' ' ) } `
83+ console . log ( `${ title } : Start` )
84+ console . time ( title )
8385 await install ( prog , [ ] )
84- console . log ( ` ${ ' ' . repeat ( 8 ) } ${ name } ${ ( i + 1 ) . toString ( ) . padEnd ( 2 , ' ' ) } ( ${ Date . now ( ) - start } ms)` )
86+ console . timeEnd ( title )
8587 } ) )
8688 } )
8789 }
0 commit comments