diff options
Diffstat (limited to 'test/queue.js')
-rw-r--r-- | test/queue.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/queue.js b/test/queue.js index bd71b05..c99380e 100644 --- a/test/queue.js +++ b/test/queue.js @@ -690,8 +690,8 @@ describe('queue', function(){ }); it('should not schedule another drain call if one is running', (done) => { - const q = async.queue(() => { - throw new Error('should not be called') + const q = async.queue((task, cb) => { + cb(null, task); }) let numCalled = 0 @@ -702,7 +702,7 @@ describe('queue', function(){ numCalled++ q.push([]) }) - q.push([]) + q.push('foo') setTimeout(() => { expect(numCalled).to.equal(1) |