@@ -63,7 +63,7 @@ describe('install', function () {
63
63
} )
64
64
65
65
afterEach ( async ( ) => {
66
- await rm ( prog . devDir , { recursive : true , force : true } )
66
+ await rm ( prog . devDir , { recursive : true , force : true , maxRetries : 3 } )
67
67
prog = null
68
68
} )
69
69
@@ -74,14 +74,16 @@ describe('install', function () {
74
74
}
75
75
76
76
return it ( name , async function ( ) {
77
- this . timeout ( platformTimeout ( 1 , { win32 : 20 } ) )
78
- const start = Date . now ( )
77
+ this . timeout ( platformTimeout ( 2 , { win32 : 20 } ) )
79
78
await fn . call ( this )
80
79
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 } )
82
81
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 )
83
85
await install ( prog , [ ] )
84
- console . log ( ` ${ ' ' . repeat ( 8 ) } ${ name } ${ ( i + 1 ) . toString ( ) . padEnd ( 2 , ' ' ) } ( ${ Date . now ( ) - start } ms)` )
86
+ console . timeEnd ( title )
85
87
} ) )
86
88
} )
87
89
}
0 commit comments