From 3b337c5f56d0f32227c4f7918df9eaca50748784 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Thu, 26 Sep 2019 16:00:54 -0600 Subject: [PATCH] fix: getVoteAccounts live test --- web3.js/test/connection.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web3.js/test/connection.test.js b/web3.js/test/connection.test.js index d710137db8..ec3898be21 100644 --- a/web3.js/test/connection.test.js +++ b/web3.js/test/connection.test.js @@ -255,7 +255,9 @@ test('getVoteAccounts', async () => { const connection = new Connection(url); const voteAccounts = await connection.getVoteAccounts(); - expect(voteAccounts.current.length).toBeGreaterThan(0); + expect( + voteAccounts.current.concat(voteAccounts.delinquent).length, + ).toBeGreaterThan(0); }); test('confirm transaction - error', async () => {