fix: epochSchedule test and lint
This commit is contained in:
@ -342,12 +342,12 @@ test('get epoch schedule', async () => {
|
|||||||
'leaderScheduleSlotOffset',
|
'leaderScheduleSlotOffset',
|
||||||
'slotsPerEpoch',
|
'slotsPerEpoch',
|
||||||
]) {
|
]) {
|
||||||
|
expect(epochSchedule).toHaveProperty('warmup');
|
||||||
expect(epochSchedule).toHaveProperty(key);
|
expect(epochSchedule).toHaveProperty(key);
|
||||||
|
if (epochSchedule.warmup) {
|
||||||
expect(epochSchedule[key]).toBeGreaterThan(0);
|
expect(epochSchedule[key]).toBeGreaterThan(0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
expect(epochSchedule).toHaveProperty('warmup');
|
|
||||||
expect(epochSchedule.warmup).toBeTruthy();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('get slot', async () => {
|
test('get slot', async () => {
|
||||||
|
@ -8,4 +8,3 @@ export const url = 'http://localhost:8899/';
|
|||||||
|
|
||||||
//export const url = 'https://devnet.solana.com:8443/';
|
//export const url = 'https://devnet.solana.com:8443/';
|
||||||
//export const url = 'http://devnet.solana.com:8899/';
|
//export const url = 'http://devnet.solana.com:8899/';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user