File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
const {
3
3
ArrayPrototypePush,
4
- ArrayPrototypeReduce,
5
4
ArrayPrototypeShift,
6
5
ArrayPrototypeUnshift,
7
6
FunctionPrototype,
8
7
Number,
9
- PromiseResolve,
10
8
ReflectApply,
11
9
SafeMap,
10
+ SafePromiseAll,
12
11
} = primordials ;
13
12
const { AsyncResource } = require ( 'async_hooks' ) ;
14
13
const {
@@ -480,10 +479,7 @@ class Suite extends Test {
480
479
this . parent . activeSubtests ++ ;
481
480
this . startTime = hrtime ( ) ;
482
481
const subtests = this . skipped || this . error ? [ ] : this . subtests ;
483
- await ArrayPrototypeReduce ( subtests , async ( prev , subtest ) => {
484
- await prev ;
485
- await subtest . run ( ) ;
486
- } , PromiseResolve ( ) ) ;
482
+ await SafePromiseAll ( subtests , ( subtests ) => subtests . start ( ) ) ;
487
483
this . pass ( ) ;
488
484
this . postRun ( ) ;
489
485
}
You can’t perform that action at this time.
0 commit comments