prysm-pulse/endtoend/minimal_slashing_e2e_test.go

32 lines
902 B
Go
Raw Normal View History

package endtoend
import (
"testing"
ev "github.com/prysmaticlabs/prysm/endtoend/evaluators"
"github.com/prysmaticlabs/prysm/shared/featureconfig"
"github.com/prysmaticlabs/prysm/shared/params"
"github.com/prysmaticlabs/prysm/shared/testutil"
)
func TestEndToEnd_Slashing_MinimalConfig(t *testing.T) {
testutil.ResetCache()
params.UseMinimalConfig()
minimalConfig := &end2EndConfig{
beaconFlags: append(featureconfig.E2EBeaconChainFlags, "--minimal-config", "--custom-genesis-delay=15"),
validatorFlags: append(featureconfig.E2EValidatorFlags, "--minimal-config"),
epochsToRun: 2,
numBeaconNodes: 2,
numValidators: params.BeaconConfig().MinGenesisActiveValidatorCount,
testSync: false,
evaluators: []ev.Evaluator{
ev.PeersConnect,
ev.ValidatorsSlashed,
ev.SlashedValidatorsLoseBalance,
ev.InjectDoubleVote,
},
}
runEndToEndTest(t, minimalConfig)
}