File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -75,21 +75,14 @@ describe('install', function () {
75
75
76
76
return it ( name , async function ( ) {
77
77
this . timeout ( 600000 )
78
+ const start = Date . now ( )
78
79
await fn . call ( this )
79
80
const expectedDir = path . join ( prog . devDir , process . version . replace ( / ^ v / , '' ) )
80
81
await rm ( expectedDir , { recursive : true , force : true } )
81
- await Promise . all ( [
82
- install ( prog , [ ] ) ,
83
- install ( prog , [ ] ) ,
84
- install ( prog , [ ] ) ,
85
- install ( prog , [ ] ) ,
86
- install ( prog , [ ] ) ,
87
- install ( prog , [ ] ) ,
88
- install ( prog , [ ] ) ,
89
- install ( prog , [ ] ) ,
90
- install ( prog , [ ] ) ,
91
- install ( prog , [ ] )
92
- ] )
82
+ await Promise . all ( new Array ( 10 ) . fill ( 0 ) . map ( async ( _ , i ) => {
83
+ await install ( prog , [ ] )
84
+ console . log ( `${ ' ' . repeat ( 8 ) } ${ name } ${ ( i + 1 ) . toString ( ) . padEnd ( 2 , ' ' ) } (${ Date . now ( ) - start } ms)` )
85
+ } ) )
93
86
} )
94
87
}
95
88
You can’t perform that action at this time.
0 commit comments