From 029b84773159f7a11e7006fbd5a3ea5e073eb926 Mon Sep 17 00:00:00 2001 From: Alex Zhu Date: Fri, 1 Jun 2012 17:15:13 +0800 Subject: [PATCH] There is a code processes path in parallel mode which MAY cause run scripts out of order. e.g. nodeunit a.js b.js c.js d.js the output may looks like -> b.js -> c.js -> a.js -> d.js I believe it's not an intended design. Because all other codes are carefully handle path in series mode. --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 5efd26ca5..25d786573 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -44,7 +44,7 @@ catch (e) { */ exports.modulePaths = function (paths, callback) { - async.concat(paths, function (p, cb) { + async.concatSeries(paths, function (p, cb) { fs.stat(p, function (err, stats) { if (err) { return cb(err);