Skip to content

Commit

Permalink
test: limit the number of parallel tests to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 9, 2022
1 parent 338fceb commit 0baf68a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script/test
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const argv = require('yargs')
.help().argv;

const assert = require('assert');
const asyncParallel = require('async/parallel');
const asyncParallelLimit = require('async/parallelLimit');
const childProcess = require('child_process');
const fs = require('fs-extra');
const glob = require('glob');
Expand Down Expand Up @@ -476,7 +476,7 @@ function requestedTestSuites(platform) {
return suites;
}

asyncParallel(testSuitesToRun, function(err, results) {
function failureCallback(err, results) {
if (err) {
console.error(err);
process.exit(1);
Expand All @@ -497,4 +497,6 @@ asyncParallel(testSuitesToRun, function(err, results) {

process.exit(0);
}
});
}

asyncParallelLimit(testSuitesToRun, 3, failureCallback);

0 comments on commit 0baf68a

Please sign in to comment.