fix: update from getEpochVoteAccounts to getVoteAccounts rpc
This commit is contained in:
committed by
Michael Vines
parent
38ffe85737
commit
a3bf378d0d
@ -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 () => {
|
||||
|
Reference in New Issue
Block a user