test: test tun 2

This commit is contained in:
Pravdyvy 2026-03-20 18:38:54 +02:00
parent ea616d0100
commit c5925e964f
3 changed files with 6 additions and 5 deletions

View File

@ -182,7 +182,7 @@ jobs:
env: env:
RISC0_DEV_MODE: "1" RISC0_DEV_MODE: "1"
RUST_LOG: "info" RUST_LOG: "info"
run: cargo nextest run -p integration_tests indexer -- --skip tps_test --exact indexer_test_run run: cargo test -p integration_tests -- --exact indexer_test_run
# valid-proof-test: # valid-proof-test:
# runs-on: ubuntu-latest # runs-on: ubuntu-latest

View File

@ -5,7 +5,7 @@ use bedrock_client::{BedrockClient, HeaderId};
use common::block::{Block, HashableBlockData}; use common::block::{Block, HashableBlockData};
// ToDo: Remove after testnet // ToDo: Remove after testnet
use common::{HashType, PINATA_BASE58}; use common::{HashType, PINATA_BASE58};
use log::{debug, error, info}; use log::{error, info};
use logos_blockchain_core::mantle::{ use logos_blockchain_core::mantle::{
Op, SignedMantleTx, Op, SignedMantleTx,
ops::channel::{ChannelId, inscribe::InscriptionOp}, ops::channel::{ChannelId, inscribe::InscriptionOp},
@ -214,11 +214,11 @@ impl IndexerCore {
"INITIAL SEARCH: Observed L1 block at slot {}", "INITIAL SEARCH: Observed L1 block at slot {}",
cycle_block.header().slot().into_inner() cycle_block.header().slot().into_inner()
); );
debug!( info!(
"INITIAL SEARCH: This block header is {}", "INITIAL SEARCH: This block header is {}",
cycle_block.header().id() cycle_block.header().id()
); );
debug!( info!(
"INITIAL SEARCH: This block parent is {}", "INITIAL SEARCH: This block parent is {}",
cycle_block.header().parent() cycle_block.header().parent()
); );
@ -317,6 +317,7 @@ fn parse_block_owned(
l1_block: &bedrock_client::Block<SignedMantleTx>, l1_block: &bedrock_client::Block<SignedMantleTx>,
decoded_channel_id: &ChannelId, decoded_channel_id: &ChannelId,
) -> (Vec<Block>, HeaderId) { ) -> (Vec<Block>, HeaderId) {
info!("Block with slot {:?} have {} transactions", l1_block.header().slot(), l1_block.transactions_vec().len());
( (
#[expect( #[expect(
clippy::wildcard_enum_match_arm, clippy::wildcard_enum_match_arm,

View File

@ -13,7 +13,7 @@ use tokio::test;
use wallet::cli::{Command, programs::native_token_transfer::AuthTransferSubcommand}; use wallet::cli::{Command, programs::native_token_transfer::AuthTransferSubcommand};
/// Timeout in milliseconds to reliably await for block finalization. /// Timeout in milliseconds to reliably await for block finalization.
const L2_TO_L1_TIMEOUT_MILLIS: u64 = 100_000; const L2_TO_L1_TIMEOUT_MILLIS: u64 = 200_000;
#[test] #[test]
async fn indexer_test_run() -> Result<()> { async fn indexer_test_run() -> Result<()> {