           assert.equal error, 'some error'
 
         "should stop the pool from continuing": (error, res) ->
-          assert.deepEqual @result, [11]
+          assert.equal @result.length, 1
 
 .export(module)

          assert.equal error, 'some error'

        "should stop the pool from continuing": (error, res) ->
          assert.deepEqual @result, [11]


    "with asynchronous worker functions":


          pool = spate.pool @workItems, options, (item, done) =>
            @inProgress += 1; @maxInProgress = Math.max(@inProgress, @maxInProgress)
            worker = =>
              @result.push item + 10
              @inProgress -= 1
              done(result...)

            setTimeout worker, Math.ceil(Math.random() * 5)

          pool.exec @callback
          undefined
