From 49660e2fb40b6a509d43e33c6316aa9bfcef8a39 Mon Sep 17 00:00:00 2001 From: katelyn martin Date: Mon, 25 Mar 2024 12:07:31 -0400 Subject: [PATCH] =?UTF-8?q?tests(app):=20=F0=9F=93=B5=20remove=20signature?= =?UTF-8?q?s=20in=20`missing=5Fblocks.rs`=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...uptime_for_genesis_validator_missing_blocks.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/crates/core/app/tests/app_tracks_uptime_for_genesis_validator_missing_blocks.rs b/crates/core/app/tests/app_tracks_uptime_for_genesis_validator_missing_blocks.rs index 285687d7c7..711e79ea17 100644 --- a/crates/core/app/tests/app_tracks_uptime_for_genesis_validator_missing_blocks.rs +++ b/crates/core/app/tests/app_tracks_uptime_for_genesis_validator_missing_blocks.rs @@ -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] @@ -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.