Skip to content

Commit 0baf68a

Browse files
committed
test: limit the number of parallel tests to 3
1 parent 338fceb commit 0baf68a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

script/test

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const argv = require('yargs')
3434
.help().argv;
3535

3636
const assert = require('assert');
37-
const asyncParallel = require('async/parallel');
37+
const asyncParallelLimit = require('async/parallelLimit');
3838
const childProcess = require('child_process');
3939
const fs = require('fs-extra');
4040
const glob = require('glob');
@@ -476,7 +476,7 @@ function requestedTestSuites(platform) {
476476
return suites;
477477
}
478478

479-
asyncParallel(testSuitesToRun, function(err, results) {
479+
function failureCallback(err, results) {
480480
if (err) {
481481
console.error(err);
482482
process.exit(1);
@@ -497,4 +497,6 @@ asyncParallel(testSuitesToRun, function(err, results) {
497497

498498
process.exit(0);
499499
}
500-
});
500+
}
501+
502+
asyncParallelLimit(testSuitesToRun, 3, failureCallback);

0 commit comments

Comments
 (0)