chore: make test less flaky
This commit is contained in:
committed by
Michael Vines
parent
2d5ace244a
commit
ddce1d3c9f
@ -426,6 +426,10 @@ test('get confirmed block', async () => {
|
||||
}
|
||||
const connection = new Connection(url);
|
||||
|
||||
while ((await connection.getSlot()) <= 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Block 0 never has any transactions in automation localnet
|
||||
const block0 = await connection.getConfirmedBlock(0);
|
||||
const blockhash0 = block0.blockhash;
|
||||
|
Reference in New Issue
Block a user