mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-30 19:34:37 +00:00
Fix failing tests
This commit is contained in:
@@ -4,17 +4,19 @@ use types::ChainSpec;
|
||||
mod utils;
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn it_can_produce_blocks() {
|
||||
let validator_count = 2;
|
||||
let blocks = 3;
|
||||
|
||||
let mut rig = TestRig::new(ChainSpec::foundation(), validator_count);
|
||||
|
||||
let blocks = rig.spec.epoch_length + 1;
|
||||
|
||||
for _ in 0..blocks {
|
||||
rig.produce_next_slot();
|
||||
}
|
||||
let dump = rig.chain_dump().expect("Chain dump failed.");
|
||||
|
||||
assert_eq!(dump.len(), blocks + 1); // + 1 for genesis block.
|
||||
assert_eq!(dump.len() as u64, blocks + 1); // + 1 for genesis block.
|
||||
|
||||
rig.dump_to_file("/tmp/chaindump.json".to_string(), &dump);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user