Skip to content

Commit

Permalink
Add configurable e2e epochs (#5235)
Browse files Browse the repository at this point in the history
* Add configurable e2e epochs
* Merge refs/heads/master into configurable-test-epochs
* Merge refs/heads/master into configurable-test-epochs
  • Loading branch information
prestonvanloon committed Mar 28, 2020
1 parent a245461 commit f89d753
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion endtoend/minimal_e2e_test.go
@@ -1,6 +1,8 @@
package endtoend

import (
"os"
"strconv"
"testing"

ev "github.com/prysmaticlabs/prysm/endtoend/evaluators"
Expand All @@ -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{
Expand Down

0 comments on commit f89d753

Please sign in to comment.