fixup! Debug tests
This commit is contained in:
parent
16cb9cfca2
commit
8365d76277
@ -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");
|
||||||
|
@ -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"),
|
||||||
|
Loading…
Reference in New Issue
Block a user