From cfea55c2d720d4351aaa0916bbe2199c66230b26 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 13 May 2020 02:26:18 -0300 Subject: [PATCH] Increase preferences store max listener count (#8578) The max listener count of the preferences store has been increased to 12. Recently the 12th listener was added, which resulted in console warnings during the unit tests - this prevents those warnings. The default max listener value is 10; we didn't see this warning until now because one of the twelve listeners is only setup when 3Box is enabled, which doesn't occur during our unit tests. --- app/scripts/controllers/preferences.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js index 0c936eb27..0b2f34baa 100644 --- a/app/scripts/controllers/preferences.js +++ b/app/scripts/controllers/preferences.js @@ -65,6 +65,7 @@ export default class PreferencesController { this.diagnostics = opts.diagnostics this.network = opts.network this.store = new ObservableStore(initState) + this.store.setMaxListeners(12) this.openPopup = opts.openPopup this._subscribeProviderType()