2019-11-15 18:56:26 +00:00
|
|
|
package endtoend
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
ev "github.com/prysmaticlabs/prysm/endtoend/evaluators"
|
2020-01-27 02:42:10 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/shared/featureconfig"
|
2019-11-15 18:56:26 +00:00
|
|
|
"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-28 21:07:43 +00:00
|
|
|
beaconFlags: append(featureconfig.E2EBeaconChainFlags, "--minimal-config", "--custom-genesis-delay=15"),
|
2020-01-27 02:42:10 +00:00
|
|
|
validatorFlags: append(featureconfig.E2EValidatorFlags, "--minimal-config"),
|
2020-01-28 19:16:00 +00:00
|
|
|
epochsToRun: 6,
|
2019-11-15 18:56:26 +00:00
|
|
|
numBeaconNodes: 4,
|
|
|
|
numValidators: params.BeaconConfig().MinGenesisActiveValidatorCount,
|
2020-03-15 05:09:23 +00:00
|
|
|
testSync: true,
|
2019-11-15 18:56:26 +00:00
|
|
|
evaluators: []ev.Evaluator{
|
2020-03-15 05:09:23 +00:00
|
|
|
ev.PeersConnect,
|
2019-11-15 18:56:26 +00:00
|
|
|
ev.ValidatorsAreActive,
|
|
|
|
ev.ValidatorsParticipating,
|
|
|
|
ev.FinalizationOccurs,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
runEndToEndTest(t, minimalConfig)
|
|
|
|
}
|