From 84c4b724128f61ccd60314e47cba4cb355dc96f5 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Thu, 7 May 2020 18:51:47 -0230 Subject: [PATCH] Fix MetaMaskController untrusted tests network access (#8549) --- test/unit/app/controllers/metamask-controller-test.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/unit/app/controllers/metamask-controller-test.js b/test/unit/app/controllers/metamask-controller-test.js index f3b92872c..4b638f21e 100644 --- a/test/unit/app/controllers/metamask-controller-test.js +++ b/test/unit/app/controllers/metamask-controller-test.js @@ -4,7 +4,6 @@ import { cloneDeep } from 'lodash' import nock from 'nock' import ethUtil from 'ethereumjs-util' import { obj as createThoughStream } from 'through2' -import blacklistJSON from 'eth-phishing-detect/src/config' import firstTimeState from '../../localhostState' import createTxMeta from '../../../lib/createTxMeta' import EthQuery from 'eth-query' @@ -59,11 +58,6 @@ describe('MetaMaskController', function () { beforeEach(function () { - nock('https://api.infura.io') - .persist() - .get('/v2/blacklist') - .reply(200, blacklistJSON) - nock('https://api.infura.io') .get('/v1/ticker/ethusd') .reply(200, '{"base": "ETH", "quote": "USD", "bid": 288.45, "ask": 288.46, "volume": 112888.17569277, "exchange": "bitfinex", "total_volume": 272175.00106721005, "num_exchanges": 8, "timestamp": 1506444677}') @@ -803,12 +797,11 @@ describe('MetaMaskController', function () { }) describe('#setupUntrustedCommunication', function () { - it('sets up phishing stream for untrusted communication ', async function () { + it('sets up phishing stream for untrusted communication', async function () { const phishingMessageSender = { url: 'http://myethereumwalletntw.com', tab: {}, } - await metamaskController.phishingController.updatePhishingLists() const { promise, resolve } = deferredPromise() const streamTest = createThoughStream((chunk, _, cb) => {