Skip to content

Commit

Permalink
fix #9918
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch committed Dec 2, 2024
1 parent c53f4cf commit 0fea14a
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 @@ -355,7 +355,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 0fea14a

Please sign in to comment.