Fix test compile errors

This commit is contained in:
Paul Hauner
2020-01-15 16:24:59 +11:00
parent 61c8781554
commit fbfe77b307

View File

@@ -391,7 +391,7 @@ fn free_attestations_added_to_fork_choice_some_none() {
if slot <= num_blocks_produced && slot != 0 { if slot <= num_blocks_produced && slot != 0 {
assert_eq!( assert_eq!(
latest_message.unwrap().1, latest_message.unwrap().1,
slot, slot.epoch(MinimalEthSpec::slots_per_epoch()),
"Latest message slot for {} should be equal to slot {}.", "Latest message slot for {} should be equal to slot {}.",
validator, validator,
slot slot
@@ -483,7 +483,7 @@ fn free_attestations_added_to_fork_choice_all_updated() {
assert_eq!( assert_eq!(
latest_message.unwrap().1, latest_message.unwrap().1,
slot, slot.epoch(MinimalEthSpec::slots_per_epoch()),
"Latest message slot should be equal to attester duty." "Latest message slot should be equal to attester duty."
); );