Update BeaconChain
tests
This commit is contained in:
parent
5a98502ad6
commit
41a36da765
@ -240,7 +240,7 @@ mod test {
|
|||||||
pub const VALIDATOR_COUNT: usize = 16;
|
pub const VALIDATOR_COUNT: usize = 16;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn build_two_epochs_on_genesis() {
|
fn can_finalize() {
|
||||||
let num_blocks_produced = MinimalEthSpec::slots_per_epoch() * 5;
|
let num_blocks_produced = MinimalEthSpec::slots_per_epoch() * 5;
|
||||||
|
|
||||||
let harness: BeaconChainHarness<
|
let harness: BeaconChainHarness<
|
||||||
@ -270,8 +270,8 @@ mod test {
|
|||||||
);
|
);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
state.finalized_epoch,
|
state.finalized_epoch,
|
||||||
state.current_epoch() - 1,
|
state.current_epoch() - 2,
|
||||||
"the head should be finalized one behind the current epoch"
|
"the head should be finalized two behind the current epoch"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user