test: use longer timeout for non-live testing to avoid timeouts
This commit is contained in:
parent
c78ca47547
commit
024a165947
|
@ -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);
|
||||
}
|
||||
|
||||
function mockGetSignatureStatus(result: string = 'Confirmed') {
|
||||
mockRpc.push([
|
||||
|
@ -609,3 +607,4 @@ test('set owner', async () => {
|
|||
|
||||
await testToken.setOwner(newOwner, account, owner.publicKey);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue