From 41a36da765c7cdccde0c5e43b1988b7ab149d314 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 19 Jun 2019 03:40:45 +1000 Subject: [PATCH] Update `BeaconChain` tests --- beacon_node/beacon_chain/src/test_utils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_node/beacon_chain/src/test_utils.rs b/beacon_node/beacon_chain/src/test_utils.rs index fe731ac3e..097ad656c 100644 --- a/beacon_node/beacon_chain/src/test_utils.rs +++ b/beacon_node/beacon_chain/src/test_utils.rs @@ -240,7 +240,7 @@ mod test { pub const VALIDATOR_COUNT: usize = 16; #[test] - fn build_two_epochs_on_genesis() { + fn can_finalize() { let num_blocks_produced = MinimalEthSpec::slots_per_epoch() * 5; let harness: BeaconChainHarness< @@ -270,8 +270,8 @@ mod test { ); assert_eq!( state.finalized_epoch, - state.current_epoch() - 1, - "the head should be finalized one behind the current epoch" + state.current_epoch() - 2, + "the head should be finalized two behind the current epoch" ); } }