diff --git a/beacon-chain/core/state/benchmarks_test.go b/beacon-chain/core/state/benchmarks_test.go index db497b8b0217..ba7bbc08c9b7 100644 --- a/beacon-chain/core/state/benchmarks_test.go +++ b/beacon-chain/core/state/benchmarks_test.go @@ -17,6 +17,7 @@ import ( var runAmount = 25 func TestBenchmarkExecuteStateTransition(t *testing.T) { + t.Skip("Skipping until v0.12 is ready, need to regen test file") benchutil.SetBenchmarkConfig() beaconState, err := benchutil.PreGenState1Epoch() if err != nil { diff --git a/beacon-chain/sync/validate_aggregate_proof_test.go b/beacon-chain/sync/validate_aggregate_proof_test.go index 13577e68dd7f..ed8086c45969 100644 --- a/beacon-chain/sync/validate_aggregate_proof_test.go +++ b/beacon-chain/sync/validate_aggregate_proof_test.go @@ -153,13 +153,13 @@ func TestValidateAggregateAndProof_NoBlock(t *testing.T) { att := ðpb.Attestation{ Data: ðpb.AttestationData{ - Source: ðpb.Checkpoint{Epoch: 0, Root: []byte("hello-world")}, - Target: ðpb.Checkpoint{Epoch: 0, Root: []byte("hello-world")}, + Source: ðpb.Checkpoint{Epoch: 0, Root: bytesutil.PadTo([]byte("hello-world"), 32)}, + Target: ðpb.Checkpoint{Epoch: 0, Root: bytesutil.PadTo([]byte("hello-world"), 32)}, }, } aggregateAndProof := ðpb.AggregateAttestationAndProof{ - SelectionProof: []byte{'A'}, + SelectionProof: bytesutil.PadTo([]byte{'A'}, 96), Aggregate: att, AggregatorIndex: 0, } @@ -224,8 +224,8 @@ func TestValidateAggregateAndProof_NotWithinSlotRange(t *testing.T) { Data: ðpb.AttestationData{ Slot: 1, BeaconBlockRoot: root[:], - Source: ðpb.Checkpoint{Epoch: 0, Root: []byte("hello-world")}, - Target: ðpb.Checkpoint{Epoch: 0, Root: []byte("hello-world")}, + Source: ðpb.Checkpoint{Epoch: 0, Root: bytesutil.PadTo([]byte("hello-world"), 32)}, + Target: ðpb.Checkpoint{Epoch: 0, Root: bytesutil.PadTo([]byte("hello-world"), 32)}, }, AggregationBits: aggBits, } @@ -393,8 +393,8 @@ func TestValidateAggregateAndProofWithNewStateMgmt_CanValidate(t *testing.T) { att := ðpb.Attestation{ Data: ðpb.AttestationData{ BeaconBlockRoot: root[:], - Source: ðpb.Checkpoint{Epoch: 0, Root: []byte("hello-world")}, - Target: ðpb.Checkpoint{Epoch: 0, Root: []byte("hello-world")}, + Source: ðpb.Checkpoint{Epoch: 0, Root: bytesutil.PadTo([]byte("hello-world"), 32)}, + Target: ðpb.Checkpoint{Epoch: 0, Root: bytesutil.PadTo([]byte("hello-world"), 32)}, }, AggregationBits: aggBits, } @@ -520,8 +520,8 @@ func TestVerifyIndexInCommittee_SeenAggregatorEpoch(t *testing.T) { att := ðpb.Attestation{ Data: ðpb.AttestationData{ BeaconBlockRoot: root[:], - Source: ðpb.Checkpoint{Epoch: 0, Root: []byte("hello-world")}, - Target: ðpb.Checkpoint{Epoch: 0, Root: []byte("hello-world")}, + Source: ðpb.Checkpoint{Epoch: 0, Root: bytesutil.PadTo([]byte("hello-world"), 32)}, + Target: ðpb.Checkpoint{Epoch: 0, Root: bytesutil.PadTo([]byte("hello-world"), 32)}, }, AggregationBits: aggBits, }