From 024a165947e1f3603d5e6edae85991e0ed9a810d Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 19 Mar 2019 13:01:22 -0700 Subject: [PATCH] test: use longer timeout for non-live testing to avoid timeouts --- web3.js/test/token-program.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web3.js/test/token-program.test.js b/web3.js/test/token-program.test.js index ccf7f8bcbc..79eb008c8d 100644 --- a/web3.js/test/token-program.test.js +++ b/web3.js/test/token-program.test.js @@ -8,10 +8,8 @@ import {newAccountWithLamports} from './new-account-with-lamports'; import {mockGetRecentBlockhash} from './mockrpc/get-recent-blockhash'; import {sleep} from '../src/util/sleep'; -if (!mockRpcEnabled) { - // The default of 5 seconds is too slow for live testing sometimes - jest.setTimeout(60000); -} +// The default of 5 seconds is too slow for live testing sometimes +jest.setTimeout(60000); function mockGetSignatureStatus(result: string = 'Confirmed') { mockRpc.push([ @@ -609,3 +607,4 @@ test('set owner', async () => { await testToken.setOwner(newOwner, account, owner.publicKey); }); +