Skip to content

Commit 338fceb

Browse files
committed
test: run the tests in parallel
This speeds up the whole test time. However, some of the tests are not thread-safe, and that means they might fail. But because now we have separate child processes and a failure repetition mechanism, they can end up passing.
1 parent 727c15b commit 338fceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/test

Lines changed: 2 additions & 2 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 asyncSeries = require('async/series');
37+
const asyncParallel = require('async/parallel');
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+
asyncParallel(testSuitesToRun, function(err, results) {
480480
if (err) {
481481
console.error(err);
482482
process.exit(1);

0 commit comments

Comments
 (0)