diff options
| author | Caolan McMahon <caolan@caolanmcmahon.com> | 2012-02-12 20:55:53 -0800 |
|---|---|---|
| committer | Caolan McMahon <caolan@caolanmcmahon.com> | 2012-02-12 20:55:53 -0800 |
| commit | 03b969c1da6ac7619b94a1dd667fbf4965c5d2fa (patch) | |
| tree | 1e65454c5b1cc38f7b6afc45d91f696bedbd207e | |
| parent | 54f995b7da6d17f6b4d9203781bc05450ad4ed53 (diff) | |
| download | async-03b969c1da6ac7619b94a1dd667fbf4965c5d2fa.tar.gz | |
update tests for IE6 compatibility
| -rw-r--r-- | test/test-async.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test-async.js b/test/test-async.js index 4505fff..b654a97 100644 --- a/test/test-async.js +++ b/test/test-async.js @@ -107,7 +107,7 @@ 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(); }, + task3: function(callback) { callback(); } }); }; @@ -1219,7 +1219,7 @@ exports['whilst'] = function (test) { exports['queue'] = function (test) { var call_order = [], - delays = [40,20,60,20]; + delays = [160,80,240,80]; // worker1: --1-4 // worker2: -2---3 @@ -1269,7 +1269,7 @@ exports['queue'] = function (test) { test.equal(q.concurrency, 2); test.equal(q.length(), 0); test.done(); - }, 200); + }, 800); }; exports['queue changing concurrency'] = function (test) { @@ -1329,7 +1329,7 @@ exports['queue changing concurrency'] = function (test) { exports['queue push without callback'] = function (test) { var call_order = [], - delays = [40,20,60,20]; + delays = [160,80,240,80]; // worker1: --1-4 // worker2: -2---3 @@ -1355,12 +1355,12 @@ exports['queue push without callback'] = function (test) { 'process 3' ]); test.done(); - }, 200); + }, 800); }; exports['queue bulk task'] = function (test) { var call_order = [], - delays = [40,20,60,20]; + delays = [160,80,240,80]; // worker1: --1-4 // worker2: -2---3 @@ -1391,7 +1391,7 @@ exports['queue bulk task'] = function (test) { test.equal(q.concurrency, 2); test.equal(q.length(), 0); test.done(); - }, 200); + }, 800); }; exports['memoize'] = function (test) { |
