mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-02-16 03:13:07 +00:00
27 lines
624 B
Rust
27 lines
624 B
Rust
use anyhow::Result;
|
|
use integration_tests::TestContext;
|
|
use log::info;
|
|
use tokio::test;
|
|
|
|
#[test]
|
|
async fn indexer_run_local_node() -> Result<()> {
|
|
let ctx = TestContext::new_bedrock_local_attached().await?;
|
|
|
|
info!("Let's observe behaviour");
|
|
|
|
tokio::time::sleep(std::time::Duration::from_secs(180)).await;
|
|
|
|
let gen_id = ctx
|
|
.sequencer_client()
|
|
.get_last_seen_l2_block_at_indexer()
|
|
.await
|
|
.unwrap();
|
|
|
|
// Checking, that some blocks are landed on bedrock
|
|
assert!(gen_id.last_block > 0);
|
|
|
|
info!("Last seen L2 block at indexer is {}", gen_id.last_block);
|
|
|
|
Ok(())
|
|
}
|