mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
Add configurable e2e epochs (#5235)
* Add configurable e2e epochs * Merge refs/heads/master into configurable-test-epochs * Merge refs/heads/master into configurable-test-epochs
This commit is contained in:
parent
a24546152b
commit
f89d753275
@ -1,6 +1,8 @@
|
||||
package endtoend
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
ev "github.com/prysmaticlabs/prysm/endtoend/evaluators"
|
||||
@ -14,10 +16,19 @@ func TestEndToEnd_MinimalConfig(t *testing.T) {
|
||||
testutil.ResetCache()
|
||||
params.UseMinimalConfig()
|
||||
|
||||
epochsToRun := 6
|
||||
var err error
|
||||
if epochs, ok := os.LookupEnv("E2E_EPOCHS"); ok {
|
||||
epochsToRun, err = strconv.Atoi(epochs)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
minimalConfig := &types.E2EConfig{
|
||||
BeaconFlags: []string{"--minimal-config", "--custom-genesis-delay=10"},
|
||||
ValidatorFlags: []string{"--minimal-config"},
|
||||
EpochsToRun: 6,
|
||||
EpochsToRun: uint64(epochsToRun),
|
||||
TestSync: true,
|
||||
TestSlasher: true,
|
||||
Evaluators: []types.Evaluator{
|
||||
|
Loading…
Reference in New Issue
Block a user