Skip to content

Commit 0152748

Browse files
authored
test: assert latest block on en on reorg (#389)
1 parent 59e0ee2 commit 0152748

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/node/tests/e2e.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,10 @@ async fn can_handle_l1_message_reorg() -> eyre::Result<()> {
14281428
)
14291429
.await?;
14301430

1431+
// Assert both nodes are at block 10.
1432+
assert_latest_block_on_rpc_by_number(&node0, 10).await;
1433+
assert_latest_block_on_rpc_by_number(&node1, 10).await;
1434+
14311435
// Since the L1 reorg reverted the L1 message included in block 11, the sequencer
14321436
// should produce a new block at height 11.
14331437
node0_rnm_handle.build_block();

0 commit comments

Comments
 (0)