fix: adjust DEFAULT_TICKS_PER_SLOT to match main repo
This commit is contained in:
@ -3,5 +3,5 @@
|
|||||||
// These constants should match the values in
|
// These constants should match the values in
|
||||||
// https://github.com/solana-labs/solana/blob/master/sdk/src/timing.rs
|
// https://github.com/solana-labs/solana/blob/master/sdk/src/timing.rs
|
||||||
export const NUM_TICKS_PER_SECOND = 10;
|
export const NUM_TICKS_PER_SECOND = 10;
|
||||||
export const DEFAULT_TICKS_PER_SLOT = 80;
|
export const DEFAULT_TICKS_PER_SLOT = 160;
|
||||||
export const DEFAULT_SLOTS_PER_EPOCH = 64;
|
export const DEFAULT_SLOTS_PER_EPOCH = 64;
|
||||||
|
@ -14,7 +14,7 @@ import {newAccountWithLamports} from './new-account-with-lamports';
|
|||||||
|
|
||||||
if (!mockRpcEnabled) {
|
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(15000);
|
jest.setTimeout(30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
test('load BPF program', async () => {
|
test('load BPF program', async () => {
|
||||||
|
@ -15,7 +15,7 @@ import {sleep} from '../src/util/sleep';
|
|||||||
|
|
||||||
if (!mockRpcEnabled) {
|
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(15000);
|
jest.setTimeout(30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
const errorMessage = 'Invalid request';
|
const errorMessage = 'Invalid request';
|
||||||
|
@ -10,7 +10,7 @@ import {sleep} from '../src/util/sleep';
|
|||||||
|
|
||||||
if (!mockRpcEnabled) {
|
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(30000);
|
jest.setTimeout(60000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function mockGetSignatureStatus(result: string = 'Confirmed') {
|
function mockGetSignatureStatus(result: string = 'Confirmed') {
|
||||||
|
Reference in New Issue
Block a user