fixup! Debug tests

This commit is contained in:
Emilia Hane 2023-01-22 10:43:05 +01:00
parent 16cb9cfca2
commit 8365d76277
No known key found for this signature in database
GPG Key ID: E73394F9C09206FA
2 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,7 @@ use types::{
}; };
type T = Witness<SystemTimeSlotClock, CachingEth1Backend<E>, E, MemoryStore<E>, MemoryStore<E>>; type T = Witness<SystemTimeSlotClock, CachingEth1Backend<E>, E, MemoryStore<E>, MemoryStore<E>>;
const SLOT_DURATION_MILLIS: u64 = 400;
struct TestRig { struct TestRig {
beacon_processor_rx: mpsc::Receiver<WorkEvent<T>>, beacon_processor_rx: mpsc::Receiver<WorkEvent<T>>,
@ -56,7 +57,7 @@ impl TestRig {
.unwrap() .unwrap()
.as_secs(), .as_secs(),
), ),
Duration::from_millis(400), Duration::from_millis(SLOT_DURATION_MILLIS),
)) ))
.build() .build()
.expect("should build"); .expect("should build");

View File

@ -394,6 +394,8 @@ mod tests {
use tokio::sync::mpsc; use tokio::sync::mpsc;
use types::{Hash256, MinimalEthSpec as E}; use types::{Hash256, MinimalEthSpec as E};
const SLOT_DURATION_MILLIS: u64 = 400;
#[derive(Debug)] #[derive(Debug)]
struct FakeStorage { struct FakeStorage {
known_blocks: RwLock<HashSet<Hash256>>, known_blocks: RwLock<HashSet<Hash256>>,
@ -617,7 +619,7 @@ mod tests {
.unwrap() .unwrap()
.as_secs(), .as_secs(),
), ),
Duration::from_millis(400), Duration::from_millis(SLOT_DURATION_MILLIS),
)) ))
.build() .build()
.expect("should build"), .expect("should build"),