test: use longer timeout for non-live testing to avoid timeouts

This commit is contained in:
Michael Vines 2019-03-19 13:01:22 -07:00
parent c78ca47547
commit 024a165947
1 changed files with 3 additions and 4 deletions

View File

@ -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);
});