[Pkg-javascript-commits] [node-async] 255/480: replace process.nextTick call with async.nextTick and increase timeouts for some tests

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit 48d8cbef98cb6c9c68d6748f0684203a03959135
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date:   Thu Jan 31 14:16:56 2013 +0000

    replace process.nextTick call with async.nextTick and increase timeouts for some tests
---
 lib/async.js       | 2 +-
 test/test-async.js | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/async.js b/lib/async.js
index 4185b11..0d250ea 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -426,7 +426,7 @@
                         args = args[0];
                     }
                     results[k] = args;
-                    process.nextTick(taskComplete);
+                    async.nextTick(taskComplete);
                 }
             };
             var requires = task.slice(0, Math.abs(task.length - 1)) || [];
diff --git a/test/test-async.js b/test/test-async.js
index 6cc06e2..6f2b975 100644
--- a/test/test-async.js
+++ b/test/test-async.js
@@ -49,13 +49,13 @@ function getFunctionsObject(call_order) {
             setTimeout(function(){
                 call_order.push(1);
                 callback(null, 1);
-            }, 100);
+            }, 125);
         },
         two: function(callback){
             setTimeout(function(){
                 call_order.push(2);
                 callback(null, 2);
-            }, 150);
+            }, 200);
         },
         three: function(callback){
             setTimeout(function(){

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list