From f89d753275cd16d3404edbbfd393a16ca9273df1 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Sat, 28 Mar 2020 11:47:31 -0700 Subject: [PATCH] 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 --- endtoend/minimal_e2e_test.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/endtoend/minimal_e2e_test.go b/endtoend/minimal_e2e_test.go index a92d24f94..e83fd2552 100644 --- a/endtoend/minimal_e2e_test.go +++ b/endtoend/minimal_e2e_test.go @@ -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{