2019-11-15 18:56:26 +00:00
|
|
|
package endtoend
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
ev "github.com/prysmaticlabs/prysm/endtoend/evaluators"
|
|
|
|
"github.com/prysmaticlabs/prysm/shared/params"
|
|
|
|
"github.com/prysmaticlabs/prysm/shared/testutil"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestEndToEnd_MinimalConfig(t *testing.T) {
|
|
|
|
testutil.ResetCache()
|
|
|
|
params.UseMinimalConfig()
|
|
|
|
|
|
|
|
minimalConfig := &end2EndConfig{
|
2020-01-26 20:25:33 +00:00
|
|
|
beaconFlags: []string{
|
2020-01-25 07:39:56 +00:00
|
|
|
"--minimal-config",
|
|
|
|
"--enable-ssz-cache",
|
|
|
|
"--cache-proposer-indices",
|
|
|
|
"--cache-filtered-block-tree",
|
|
|
|
"--enable-skip-slots-cache",
|
|
|
|
"--enable-attestation-cache",
|
|
|
|
},
|
2020-01-26 20:25:33 +00:00
|
|
|
validatorFlags: []string{
|
2020-01-25 07:39:56 +00:00
|
|
|
"--minimal-config",
|
|
|
|
},
|
2019-11-15 18:56:26 +00:00
|
|
|
epochsToRun: 5,
|
|
|
|
numBeaconNodes: 4,
|
|
|
|
numValidators: params.BeaconConfig().MinGenesisActiveValidatorCount,
|
|
|
|
evaluators: []ev.Evaluator{
|
|
|
|
ev.ValidatorsAreActive,
|
|
|
|
ev.ValidatorsParticipating,
|
|
|
|
ev.FinalizationOccurs,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
runEndToEndTest(t, minimalConfig)
|
|
|
|
}
|