fix: better handling if confirmed block not found on node
This commit is contained in:
committed by
Michael Vines
parent
43e90a1967
commit
3482953757
@ -646,6 +646,21 @@ test('get confirmed block', async () => {
|
||||
}
|
||||
x++;
|
||||
}
|
||||
|
||||
mockRpc.push([
|
||||
url,
|
||||
{
|
||||
method: 'getConfirmedBlock',
|
||||
params: [10000],
|
||||
},
|
||||
{
|
||||
error: null,
|
||||
result: null,
|
||||
},
|
||||
]);
|
||||
await expect(
|
||||
connection.getConfirmedBlock(10000),
|
||||
).rejects.toThrow();
|
||||
});
|
||||
|
||||
test('get recent blockhash', async () => {
|
||||
|
Reference in New Issue
Block a user