27 lines
624 B
Rust
Raw Normal View History

2026-01-14 16:16:45 +02:00
use anyhow::Result;
use integration_tests::TestContext;
use log::info;
use tokio::test;
#[test]
async fn indexer_run_local_node() -> Result<()> {
2026-01-15 15:44:48 +02:00
let ctx = TestContext::new_bedrock_local_attached().await?;
2026-01-14 16:16:45 +02:00
info!("Let's observe behaviour");
2026-01-19 13:55:31 +02:00
tokio::time::sleep(std::time::Duration::from_secs(180)).await;
2026-01-14 16:16:45 +02:00
2026-01-16 16:15:21 +02:00
let gen_id = ctx
.sequencer_client()
.get_last_seen_l2_block_at_indexer()
.await
.unwrap();
2026-01-14 16:16:45 +02:00
2026-01-19 13:55:31 +02:00
// Checking, that some blocks are landed on bedrock
assert!(gen_id.last_block > 0);
2026-01-16 16:15:21 +02:00
info!("Last seen L2 block at indexer is {}", gen_id.last_block);
2026-01-14 16:16:45 +02:00
Ok(())
2026-01-15 15:44:48 +02:00
}