Fix failing tests

This commit is contained in:
Paul Hauner 2019-02-26 17:20:43 +13:00
parent e97b554485
commit 65d303c500
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -7,7 +7,8 @@ use ssz::{ssz_encode, Decodable};
#[test]
pub fn can_produce_genesis_block() {
let builder = BeaconStateBuilder::with_random_validators(2);
let mut builder = BeaconStateBuilder::with_random_validators(2);
builder.genesis().unwrap();
builder.build().unwrap();
}
@ -21,6 +22,8 @@ pub fn get_attestation_participants_consistency() {
let mut builder = BeaconStateBuilder::with_random_validators(8);
builder.spec = ChainSpec::few_validators();
builder.genesis().unwrap();
let mut state = builder.build().unwrap();
let spec = builder.spec.clone();