Skip to content

Commit 0067b18

Browse files
committed
fix(lint): disable no-await-in-loop on fullnode sync loop
CI's Check Formatting step (yarn prettier:format → eslint --fix) failed with two no-await-in-loop errors at the polling loop in verifyOnFullnode. Matches the existing pattern used by the connect-retry loop above.
1 parent afc9086 commit 0067b18

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/force-inclusion/scripts/force-inclusion-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,11 @@ async function verifyOnFullnode(nodeConfigPath) {
401401
const startTime = Date.now();
402402
let latestBlock;
403403
while (Date.now() - startTime < SYNC_TIMEOUT_MS) {
404+
// eslint-disable-next-line no-await-in-loop
404405
latestBlock = await childChainProvider.getBlock('latest');
405406
if (latestBlock.number > 0) break;
406407
console.log(` Block: ${latestBlock.number}, waiting...`);
408+
// eslint-disable-next-line no-await-in-loop
407409
await new Promise((r) => setTimeout(r, 5_000));
408410
}
409411

0 commit comments

Comments
 (0)