test: bump jest timeout

This commit is contained in:
Michael Vines 2018-10-10 14:00:59 -07:00
parent d40712999c
commit 1dade364cc
1 changed files with 7 additions and 1 deletions

View File

@ -3,9 +3,15 @@
import {Account} from '../src/account';
import {Connection} from '../src/connection';
import {SystemProgram} from '../src/system-program';
import {mockRpc} from './__mocks__/node-fetch';
import {mockRpc, mockRpcEnabled} from './__mocks__/node-fetch';
import {url} from './url.js';
if (!mockRpcEnabled) {
// The default of 5 seconds is too slow for live testing sometimes
jest.setTimeout(10000);
}
const errorMessage = 'Invalid request';
const errorResponse = {
error: {