0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Set a higher maxListeners value

fixes #5373

- Set Max Listeners on our Event Emitter to 100
- Stops the '11 listeners added' error on node 0.12 during tests
This commit is contained in:
Hannah Wolfe 2015-10-09 19:27:49 +01:00
parent eed6879845
commit b943948d24

View file

@ -1,9 +1,12 @@
var events = require('events'),
util = require('util'),
EventRegistry;
EventRegistry,
EventRegistryInstance;
EventRegistry = function () {};
util.inherits(EventRegistry, events.EventEmitter);
module.exports = new EventRegistry();
EventRegistryInstance = new EventRegistry();
EventRegistryInstance.setMaxListeners(100);
module.exports = EventRegistryInstance;