diff --git a/test/unit/batch/job_subscriber.js b/test/unit/batch/job_subscriber.js index 9bc5473a..d4b607d5 100644 --- a/test/unit/batch/job_subscriber.js +++ b/test/unit/batch/job_subscriber.js @@ -21,6 +21,9 @@ describe('batch API job subscriber', function () { unsubscribe: function () { var isValidFirstArg = arguments[0] === 'batch:hosts'; self.redis.unsubscribeIsCalledWithValidArgs = isValidFirstArg; + }, + removeAllListeners: function () { + return this; } }; this.queueSeeker = {