Skip to content

Commit c97abc4

Browse files
committed
test: run the tests in parallel
1 parent b2975cf commit c97abc4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

script/test.js

+5-3
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 asyncSeries = require('async/series');
37+
const asyncParallelLimits = require('async/parallelLimits');
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-
asyncSeries(testSuitesToRun, function(err, results) {
479+
function testsFailureCallback(err, results) {
480480
if (err) {
481481
console.error(err);
482482
process.exit(1);
@@ -497,4 +497,6 @@ asyncSeries(testSuitesToRun, function(err, results) {
497497

498498
process.exit(0);
499499
}
500-
});
500+
}
501+
502+
asyncParallelLimits(testSuitesToRun, 2, testsFailureCallback);

0 commit comments

Comments
 (0)