Fix SszBlock tests

This commit is contained in:
Paul Hauner 2018-09-19 17:54:14 +10:00
parent 24312f445e
commit a1b826906a
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

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