Update BeaconChain tests

This commit is contained in:
Paul Hauner 2019-06-19 03:40:45 +10:00
parent 5a98502ad6
commit 41a36da765
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -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"
); );
} }
} }