Skip to content

Commit

Permalink
Force serial execution of forked processes, closes #282
Browse files Browse the repository at this point in the history
  • Loading branch information
vkholodkov authored and vdemedes committed Nov 29, 2015
1 parent 8cde259 commit 7ad7501
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,8 @@ function init(files) {

fileCount = files.length;

var tests = files.map(run);

return Promise.all(tests);
return cli.flags.serial ? Promise.mapSeries(files, run)
: Promise.all(files.map(run));
});
}

Expand Down

0 comments on commit 7ad7501

Please sign in to comment.