Skip to content

Commit

Permalink
fix #9918
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch committed Nov 26, 2024
1 parent ed9a0e3 commit 9c84292
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yarn-project/end-to-end/src/spartan/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,11 @@ export async function awaitL2BlockNumber(
await sleep(1000);
tips = await rollupCheatCodes.getTips();
}
logger.info(`Reached L2 Block ${tips.pending}`);
if (Date.now() >= endTime) {
throw new Error(`Timeout waiting for L2 Block ${blockNumber}`);
} else {
logger.info(`Reached L2 Block ${tips.pending}`);
}
}

export async function restartBot(namespace: string, logger: Logger) {
Expand Down

0 comments on commit 9c84292

Please sign in to comment.