diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-03-22 16:02:31 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-03-22 16:02:31 -0700 |
commit | 1dc32770eb92c23347a9603196aa9fad6921635f (patch) | |
tree | 9852917bfc0a506018ae9b1528efe2394ebe9e55 | |
parent | fafb4ef331d10ac20d62ff49b8841754438c3c78 (diff) | |
download | async-queue-724.tar.gz |
fix cargo events testqueue-724
-rw-r--r-- | mocha_test/cargo.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mocha_test/cargo.js b/mocha_test/cargo.js index ece80b6..b2980a2 100644 --- a/mocha_test/cargo.js +++ b/mocha_test/cargo.js @@ -195,7 +195,7 @@ describe('cargo', function () { q.concurrency = 3; q.saturated = function() { - assert(q.length() == 3, 'cargo should be saturated now'); + assert(q.running() == 3, 'cargo should be saturated now'); calls.push('saturated'); }; q.empty = function() { @@ -209,14 +209,16 @@ describe('cargo', function () { ); calls.push('drain'); expect(calls).to.eql([ - 'saturated', 'process foo', 'process bar', + 'saturated', 'process zoo', 'foo cb', + 'saturated', 'process poo', 'bar cb', 'empty', + 'saturated', 'process moo', 'zoo cb', 'poo cb', |