From a1b826906acf3a24551cbedb814f078337da3eb0 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 19 Sep 2018 17:54:14 +1000 Subject: [PATCH] Fix SszBlock tests --- lighthouse/state/block/ssz_block.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lighthouse/state/block/ssz_block.rs b/lighthouse/state/block/ssz_block.rs index 7f672dcdf..ea89c6fa7 100644 --- a/lighthouse/state/block/ssz_block.rs +++ b/lighthouse/state/block/ssz_block.rs @@ -12,7 +12,6 @@ use super::block::{ pub enum BlockValidatorError { TooShort, TooLong, - NoAttestationRecords, BadPowHash, SlotTooLow, SlotTooHigh, @@ -119,7 +118,7 @@ mod tests { assert_eq!( SszBlock::from_slice(&ssz[..]), - Err(BlockValidatorError::NoAttestationRecords) + Err(BlockValidatorError::TooShort) ); } @@ -129,9 +128,6 @@ mod tests { b.attestations = vec![AttestationRecord::zero()]; let ssz = get_block_ssz(&b); - assert_eq!( - SszBlock::from_slice(&ssz[..]), - Err(BlockValidatorError::NoAttestationRecords) - ); + assert!(SszBlock::from_slice(&ssz[..]).is_ok()); } }