fix: epochSchedule test and lint
This commit is contained in:
parent
7d69cad81b
commit
e3516bbcfd
|
@ -342,12 +342,12 @@ test('get epoch schedule', async () => {
|
|||
'leaderScheduleSlotOffset',
|
||||
'slotsPerEpoch',
|
||||
]) {
|
||||
expect(epochSchedule).toHaveProperty('warmup');
|
||||
expect(epochSchedule).toHaveProperty(key);
|
||||
if (epochSchedule.warmup) {
|
||||
expect(epochSchedule[key]).toBeGreaterThan(0);
|
||||
}
|
||||
|
||||
expect(epochSchedule).toHaveProperty('warmup');
|
||||
expect(epochSchedule.warmup).toBeTruthy();
|
||||
}
|
||||
});
|
||||
|
||||
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 = 'http://devnet.solana.com:8899/';
|
||||
|
||||
|
|
Loading…
Reference in New Issue