From fbfe77b307c98f2f6a6305586aaec5baa6383c10 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 15 Jan 2020 16:24:59 +1100 Subject: [PATCH] Fix test compile errors --- beacon_node/beacon_chain/tests/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/beacon_chain/tests/tests.rs b/beacon_node/beacon_chain/tests/tests.rs index c88fcf4d14..58bd10a4ec 100644 --- a/beacon_node/beacon_chain/tests/tests.rs +++ b/beacon_node/beacon_chain/tests/tests.rs @@ -391,7 +391,7 @@ fn free_attestations_added_to_fork_choice_some_none() { if slot <= num_blocks_produced && slot != 0 { assert_eq!( latest_message.unwrap().1, - slot, + slot.epoch(MinimalEthSpec::slots_per_epoch()), "Latest message slot for {} should be equal to slot {}.", validator, slot @@ -483,7 +483,7 @@ fn free_attestations_added_to_fork_choice_all_updated() { assert_eq!( latest_message.unwrap().1, - slot, + slot.epoch(MinimalEthSpec::slots_per_epoch()), "Latest message slot should be equal to attester duty." );