chore: make test less flaky

This commit is contained in:
Tyera Eulberg 2019-11-26 01:58:00 -07:00 committed by Michael Vines
parent 2d5ace244a
commit ddce1d3c9f
1 changed files with 4 additions and 0 deletions

View File

@ -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;