         expect(pullQueue.add.called).toBe(true)
 
         done()
-      ), 50)
+


      cube.labelVoxel([1, 1, 1], 42)

      setTimeout((->
        expect(pullQueue.add.calledWith({
            bucket: [0, 0, 0, 0],
            priority: 123})

mockRequire = require("mock-require")
sinon = require("sinon")
_ = require("lodash")

mockRequire("../../../oxalis/model/binary/pullqueue", {
  prototype : {
