diff --git a/web3.js/test/connection.test.js b/web3.js/test/connection.test.js index 1129cedb11..e15f58d454 100644 --- a/web3.js/test/connection.test.js +++ b/web3.js/test/connection.test.js @@ -342,12 +342,12 @@ test('get epoch schedule', async () => { 'leaderScheduleSlotOffset', 'slotsPerEpoch', ]) { + expect(epochSchedule).toHaveProperty('warmup'); expect(epochSchedule).toHaveProperty(key); - expect(epochSchedule[key]).toBeGreaterThan(0); + if (epochSchedule.warmup) { + expect(epochSchedule[key]).toBeGreaterThan(0); + } } - - expect(epochSchedule).toHaveProperty('warmup'); - expect(epochSchedule.warmup).toBeTruthy(); }); test('get slot', async () => { diff --git a/web3.js/test/url.js b/web3.js/test/url.js index d83eb4f63e..433b5cf61b 100644 --- a/web3.js/test/url.js +++ b/web3.js/test/url.js @@ -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/'; -