         result2 = task.run(2)
 
         setTimeout ->
-          console.log 'after ' + timeoutAmount + 'ms'
+#          console.log 'after ' + timeoutAmount + 'ms'
           expect(foo.bar.calls.count()).toEqual(2)
           expect(memo[1]).toEqual(1)
           expect(memo[2]).toEqual(1)

            do resolve
          return
        task.onIdle ()->
          debugger
          expect(task.isIdle()).toBe(true)
          done()


        , 2 * timeoutAmount + safetyMargin

        setTimeout ->
#          console.log 'after ' + 3 * timeoutAmount + 'ms'
          expect(foo.bar.calls.count()).toEqual(5)
          expect(memo[1]).toEqual(2)
          expect(memo[2]).toEqual(3)
