diff options
Diffstat (limited to 'packages/0x.js/test/subscription_test.ts')
-rw-r--r-- | packages/0x.js/test/subscription_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/0x.js/test/subscription_test.ts b/packages/0x.js/test/subscription_test.ts index f485bf84b..c6d4ac923 100644 --- a/packages/0x.js/test/subscription_test.ts +++ b/packages/0x.js/test/subscription_test.ts @@ -13,10 +13,10 @@ import { constants } from './utils/constants'; import { assertNodeCallbackError } from './utils/report_callback_errors'; chaiSetup.configure(); -const blockchainLifecycle = new BlockchainLifecycle(); +const web3 = web3Factory.create(); +const blockchainLifecycle = new BlockchainLifecycle(web3); describe('SubscriptionTest', () => { - let web3: Web3; let zeroEx: ZeroEx; let userAddresses: string[]; let tokens: Token[]; @@ -26,7 +26,6 @@ describe('SubscriptionTest', () => { networkId: constants.TESTRPC_NETWORK_ID, }; before(async () => { - web3 = web3Factory.create(); zeroEx = new ZeroEx(web3.currentProvider, config); userAddresses = await zeroEx.getAvailableAddressesAsync(); tokens = await zeroEx.tokenRegistry.getTokensAsync(); |