fix: fix TypeError when confirmed block is not found (#13264)
This commit is contained in:
@ -1120,13 +1120,15 @@ test('get confirmed block', async () => {
|
||||
params: [Number.MAX_SAFE_INTEGER],
|
||||
},
|
||||
{
|
||||
error: null,
|
||||
error: {
|
||||
message: `Block not available for slot ${Number.MAX_SAFE_INTEGER}`,
|
||||
},
|
||||
result: null,
|
||||
},
|
||||
]);
|
||||
await expect(
|
||||
connection.getConfirmedBlock(Number.MAX_SAFE_INTEGER),
|
||||
).rejects.toThrow();
|
||||
).rejects.toThrow(`Block not available for slot ${Number.MAX_SAFE_INTEGER}`);
|
||||
});
|
||||
|
||||
test('get recent blockhash', async () => {
|
||||
|
Reference in New Issue
Block a user