summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mocha_test/cargo.js6
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',