From 8365d76277001e282cade1111ef78c89b22436cc Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Sun, 22 Jan 2023 10:43:05 +0100 Subject: [PATCH] fixup! Debug tests --- beacon_node/network/src/sync/block_lookups/tests.rs | 3 ++- beacon_node/network/src/sync/range_sync/range.rs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/beacon_node/network/src/sync/block_lookups/tests.rs b/beacon_node/network/src/sync/block_lookups/tests.rs index a1dba588b5..4363883eaf 100644 --- a/beacon_node/network/src/sync/block_lookups/tests.rs +++ b/beacon_node/network/src/sync/block_lookups/tests.rs @@ -25,6 +25,7 @@ use types::{ }; type T = Witness, E, MemoryStore, MemoryStore>; +const SLOT_DURATION_MILLIS: u64 = 400; struct TestRig { beacon_processor_rx: mpsc::Receiver>, @@ -56,7 +57,7 @@ impl TestRig { .unwrap() .as_secs(), ), - Duration::from_millis(400), + Duration::from_millis(SLOT_DURATION_MILLIS), )) .build() .expect("should build"); diff --git a/beacon_node/network/src/sync/range_sync/range.rs b/beacon_node/network/src/sync/range_sync/range.rs index 44ad4d4094..8fde80cbc8 100644 --- a/beacon_node/network/src/sync/range_sync/range.rs +++ b/beacon_node/network/src/sync/range_sync/range.rs @@ -394,6 +394,8 @@ mod tests { use tokio::sync::mpsc; use types::{Hash256, MinimalEthSpec as E}; + const SLOT_DURATION_MILLIS: u64 = 400; + #[derive(Debug)] struct FakeStorage { known_blocks: RwLock>, @@ -617,7 +619,7 @@ mod tests { .unwrap() .as_secs(), ), - Duration::from_millis(400), + Duration::from_millis(SLOT_DURATION_MILLIS), )) .build() .expect("should build"),