diff --git a/beacon-chain/core/helpers/payload_attestation_test.go b/beacon-chain/core/helpers/payload_attestation_test.go index 6a5ca1ae1434..3ffa5189152f 100644 --- a/beacon-chain/core/helpers/payload_attestation_test.go +++ b/beacon-chain/core/helpers/payload_attestation_test.go @@ -255,9 +255,8 @@ func TestGetIndexedPayloadAttestation(t *testing.T) { func TestIsValidIndexedPayloadAttestation(t *testing.T) { helpers.ClearCache() - // Create 10 committees. Total 40960 validators. - committeeCount := uint64(10) - validatorCount := committeeCount * params.BeaconConfig().TargetCommitteeSize * uint64(params.BeaconConfig().SlotsPerEpoch) + // Create validators. + validatorCount := uint64(350) validators := make([]*ethpb.Validator, validatorCount) _, secretKeys, err := util.DeterministicDepositsAndKeys(validatorCount) require.NoError(t, err) @@ -306,7 +305,7 @@ func TestIsValidIndexedPayloadAttestation(t *testing.T) { }, { attestation: ðpb.IndexedPayloadAttestation{ - AttestingIndices: []primitives.ValidatorIndex{123, 456, 789}, + AttestingIndices: []primitives.ValidatorIndex{123, 234, 345}, Data: ð.PayloadAttestationData{ BeaconBlockRoot: make([]byte, fieldparams.RootLength), },