Skip to content

Commit

Permalink
tests(app): 📵 remove signatures in missing_blocks.rs test
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn committed Mar 25, 2024
1 parent f27fbe9 commit 49660e2
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use {
component::validator_handler::validator_store::ValidatorDataRead, validator::Validator,
},
tap::Tap,
tracing::{error_span, info, Instrument},
tracing::{error_span, info, trace, Instrument},
};

#[tokio::test]
Expand Down Expand Up @@ -60,10 +60,15 @@ async fn app_tracks_uptime_for_genesis_validator_missing_blocks() -> anyhow::Res

// Jump ahead a few blocks.
let height = 4;
node.fast_forward(height)
.instrument(error_span!("fast forwarding test node {height} blocks"))
.await
.context("fast forwarding {height} blocks")?;
for i in 1..=height {
node.block()
.with_signatures(Default::default())
.execute()
.tap(|_| trace!(%i, "executing block with no signatures"))
.instrument(error_span!("executing block with no signatures", %i))
.await
.context("executing block with no signatures")?;
}

// Check the validator's uptime once more. We should have uptime data up to the fourth block,
// and the validator should have missed all of the blocks between genesis and now.
Expand Down

0 comments on commit 49660e2

Please sign in to comment.