24 lines
780 B
Rust
Raw Normal View History

2026-01-23 10:39:34 +02:00
use anyhow::Result;
use integration_tests::TestContext;
use log::info;
use tokio::test;
2026-01-14 16:16:45 +02:00
2026-01-23 10:39:34 +02:00
#[ignore = "needs complicated setup"]
#[test]
2026-01-22 14:44:48 +02:00
// To run this test properly, you need nomos node running in the background.
// For instructions in building nomos node, refer to [this](https://github.com/logos-blockchain/logos-blockchain?tab=readme-ov-file#running-a-logos-blockchain-node).
//
// Recommended to run node locally from build binary.
2026-01-23 10:39:34 +02:00
async fn indexer_run_local_node() -> Result<()> {
let _ctx = TestContext::new_bedrock_local_attached().await?;
2026-01-14 16:16:45 +02:00
2026-01-23 10:39:34 +02:00
info!("Let's observe behaviour");
2026-01-14 16:16:45 +02:00
2026-01-23 10:39:34 +02:00
tokio::time::sleep(std::time::Duration::from_secs(180)).await;
2026-01-14 16:16:45 +02:00
2026-01-23 10:39:34 +02:00
// No way to check state of indexer now
// When it will be a service, then it will become possible.
2026-01-14 16:16:45 +02:00
2026-01-23 10:39:34 +02:00
Ok(())
}