message: Add test for waitingItems
diff: @@ -135,4 +135,16 @@ describe("QueuePool", function() {
  yield nextTick();
  expect(Object.keys(itemToDeferMap).sort()).toEqual(["b"]);
  }));
  +
  + it("should accurately track waiting items", test.coroutine(function*() {
  + for (let i = 0;i<10;i++) {
  + pool.enqueue(i, i);
  + }
  + expect(pool.waitingItems).toEqual(7);
  + for (let j = 0; j < 10; j++) {
  + yield nextTick();
  + resolveItem(j);
  + }
  + expect(pool.waitingItems).toEqual(0);
  + }));
  });
  