fix: getConfirmationTime() was removed upstream

This commit is contained in:
Michael Vines
2019-02-17 16:09:55 -08:00
parent 6b73d7d17c
commit 5b9665098a
3 changed files with 0 additions and 38 deletions

View File

@ -123,25 +123,6 @@ test('get last Id', async () => {
expect(lastId.length).toBeGreaterThanOrEqual(43);
});
test('get confirmation time', async () => {
const connection = new Connection(url);
mockRpc.push([
url,
{
method: 'getConfirmationTime',
params: [],
},
{
error: null,
result: 123,
},
]);
const finality = await connection.getConfirmationTime();
expect(finality).toBeGreaterThanOrEqual(0);
});
test('request airdrop', async () => {
const account = new Account();
const connection = new Connection(url);