inbox.clean(1000).then(function () { console.log('inbox queue clean') failed.clean(1000).then(function () { console.log('failed queue clean') docWorker.init(tmpPath, done) }) })
before(function (done) { getRepoEvents = sinon.stub(repo, 'getRepoEvents') getRepoEvents.yields(null, []) inbox = new Bull('inbox', env.redis.port, env.redis.host) failed = new Bull('failed', env.redis.port, env.redis.host) inbox.clean(1000).then(function () { console.log('inbox queue clean') failed.clean(1000).then(function () { console.log('failed queue clean') docWorker.init(tmpPath, done) }) }) })