test: use longer timeout for non-live testing to avoid timeouts
This commit is contained in:
@ -8,10 +8,8 @@ import {newAccountWithLamports} from './new-account-with-lamports';
|
|||||||
import {mockGetRecentBlockhash} from './mockrpc/get-recent-blockhash';
|
import {mockGetRecentBlockhash} from './mockrpc/get-recent-blockhash';
|
||||||
import {sleep} from '../src/util/sleep';
|
import {sleep} from '../src/util/sleep';
|
||||||
|
|
||||||
if (!mockRpcEnabled) {
|
|
||||||
// The default of 5 seconds is too slow for live testing sometimes
|
// The default of 5 seconds is too slow for live testing sometimes
|
||||||
jest.setTimeout(60000);
|
jest.setTimeout(60000);
|
||||||
}
|
|
||||||
|
|
||||||
function mockGetSignatureStatus(result: string = 'Confirmed') {
|
function mockGetSignatureStatus(result: string = 'Confirmed') {
|
||||||
mockRpc.push([
|
mockRpc.push([
|
||||||
@ -609,3 +607,4 @@ test('set owner', async () => {
|
|||||||
|
|
||||||
await testToken.setOwner(newOwner, account, owner.publicKey);
|
await testToken.setOwner(newOwner, account, owner.publicKey);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user