mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
d077483577
* v3 import renamings * tidy * fmt * rev * Update beacon-chain/core/epoch/precompute/reward_penalty_test.go * Update beacon-chain/core/helpers/validators_test.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/iface/BUILD.bazel * Update beacon-chain/db/kv/kv.go * Update beacon-chain/db/kv/state.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/sync/initial-sync/service.go * fix deps * fix bad replacements * fix bad replacements * change back * gohashtree version * fix deps Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
45 lines
1.2 KiB
Go
45 lines
1.2 KiB
Go
package endtoend
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/config/params"
|
|
ev "github.com/prysmaticlabs/prysm/v3/testing/endtoend/evaluators"
|
|
e2eParams "github.com/prysmaticlabs/prysm/v3/testing/endtoend/params"
|
|
"github.com/prysmaticlabs/prysm/v3/testing/endtoend/types"
|
|
"github.com/prysmaticlabs/prysm/v3/testing/require"
|
|
)
|
|
|
|
func TestEndToEnd_Slasher_MinimalConfig(t *testing.T) {
|
|
params.SetupTestConfigCleanup(t)
|
|
params.OverrideBeaconConfig(params.E2ETestConfig().Copy())
|
|
require.NoError(t, e2eParams.Init(t, e2eParams.StandardBeaconCount))
|
|
|
|
tracingPort := e2eParams.TestParams.Ports.JaegerTracingPort
|
|
tracingEndpoint := fmt.Sprintf("127.0.0.1:%d", tracingPort)
|
|
|
|
testConfig := &types.E2EConfig{
|
|
BeaconFlags: []string{
|
|
"--slasher",
|
|
},
|
|
ValidatorFlags: []string{},
|
|
EpochsToRun: 4,
|
|
TestSync: false,
|
|
TestFeature: false,
|
|
TestDeposits: false,
|
|
Evaluators: []types.Evaluator{
|
|
ev.PeersConnect,
|
|
ev.HealthzCheck,
|
|
ev.ValidatorsSlashedAfterEpoch(4),
|
|
ev.SlashedValidatorsLoseBalanceAfterEpoch(4),
|
|
ev.InjectDoubleVoteOnEpoch(2),
|
|
ev.InjectDoubleBlockOnEpoch(2),
|
|
},
|
|
EvalInterceptor: defaultInterceptor,
|
|
TracingSinkEndpoint: tracingEndpoint,
|
|
}
|
|
|
|
newTestRunner(t, testConfig).run()
|
|
}
|