[Pkg-javascript-commits] [node-async] 128/480: Add test for auto problem about task sequence

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:19 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 2fc3ab83d79cd660d39355a4ad51897d6f8c3b70
Author: Sheile <sheile1024 at gmail.com>
Date:   Fri Jan 20 13:00:09 2012 +0900

    Add test for auto problem about task sequence
---
 test/test-async.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/test-async.js b/test/test-async.js
index d3eeddc..104293f 100644
--- a/test/test-async.js
+++ b/test/test-async.js
@@ -101,6 +101,16 @@ exports['auto no callback'] = function(test){
     });
 };
 
+// Issue 24 on github: https://github.com/caolan/async/issues#issue/24
+// Issue 76 on github: https://github.com/caolan/async/issues#issue/76
+exports['auto removeListener has side effect on loop iterator'] = function(test) {
+    async.auto({
+        task1: ['task3', function(callback) { test.done() }],
+        task2: ['task3', function(callback) { /* by design: DON'T call callback */ }],
+        task3: function(callback) { callback(); },
+    });
+};
+
 exports['waterfall'] = function(test){
     test.expect(6);
     var call_order = [];

-- 
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