fix: update from getEpochVoteAccounts to getVoteAccounts rpc

This commit is contained in:
Tyera Eulberg
2019-08-19 11:39:08 -06:00
committed by Michael Vines
parent 38ffe85737
commit a3bf378d0d
4 changed files with 54 additions and 24 deletions

View File

@ -210,15 +210,15 @@ test('get cluster nodes', async () => {
}
});
test('getEpochVoteAccounts', async () => {
test('getVoteAccounts', async () => {
if (mockRpcEnabled) {
console.log('non-live test skipped');
return;
}
const connection = new Connection(url);
const voteAccounts = await connection.getEpochVoteAccounts();
expect(voteAccounts.length).toBeGreaterThan(0);
const voteAccounts = await connection.getVoteAccounts();
expect(voteAccounts.current.length).toBeGreaterThan(0);
});
test('confirm transaction - error', async () => {