From 1728d9a5aa263ecbe48c196688345fff2f803cbd Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Fri, 17 Jan 2020 18:28:27 -0330 Subject: [PATCH] Inline networkStore to avoid having too many event listeners (#7854) --- test/unit/app/controllers/transactions/tx-controller-test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/app/controllers/transactions/tx-controller-test.js b/test/unit/app/controllers/transactions/tx-controller-test.js index 950e53e9c319..8aab61122c1f 100644 --- a/test/unit/app/controllers/transactions/tx-controller-test.js +++ b/test/unit/app/controllers/transactions/tx-controller-test.js @@ -19,7 +19,6 @@ import { createTestProviderTools, getTestAccounts } from '../../../../stub/provi const noop = () => true const currentNetworkId = 42 -const netStore = new ObservableStore(currentNetworkId) describe('Transaction Controller', function () { let txController, provider, providerResultStub, fromAccount @@ -41,7 +40,7 @@ describe('Transaction Controller', function () { getGasPrice: function () { return '0xee6b2800' }, - networkStore: netStore, + networkStore: new ObservableStore(currentNetworkId), txHistoryLimit: 10, blockTracker: blockTrackerStub, signTransaction: (ethTx) => new Promise((resolve) => {