f84227d3ff01b52ec21335e2cf88fcd880325dee
1 async
function runTest (pool
, { tasks
, workerData
}) {
2 return new Promise((resolve
, reject
) => {
4 for (let i
= 0; i
<= tasks
; i
++) {
9 if (executions
=== tasks
) {
10 return resolve('FINISH')
14 .catch(err
=> console
.error(err
))
19 module
.exports
= { runTest
}