Batch Scenario Runs Into Single Test (#10878)

* batch scenarios

* fix

* fix

* Update testing/endtoend/endtoend_test.go
This commit is contained in:
Nishant Das
2022-06-15 16:02:31 +08:00
committed by GitHub
parent 044a4ad5a3
commit 9e4ba75e71
5 changed files with 112 additions and 126 deletions

View File

@@ -1,20 +1,16 @@
package endtoend
import "testing"
import (
"testing"
func TestEndToEnd_ScenarioRun_BeaconOffline(t *testing.T) {
runner := e2eMinimal(t)
"github.com/prysmaticlabs/prysm/testing/endtoend/types"
)
func TestEndToEnd_MultiScenarioRun(t *testing.T) {
runner := e2eMinimal(t, types.WithEpochs(22))
runner.config.Evaluators = scenarioEvals()
runner.config.EvalInterceptor = runner.singleNodeOffline
runner.scenarioRunner()
}
func TestEndToEnd_ScenarioRun_AllvalidatorsOffline(t *testing.T) {
runner := e2eMinimal(t)
runner.config.Evaluators = scenarioEvals()
runner.config.EvalInterceptor = runner.allValidatorsOffline
runner.config.EvalInterceptor = runner.multiScenario
runner.scenarioRunner()
}
@@ -26,11 +22,3 @@ func TestEndToEnd_ScenarioRun_EEOffline(t *testing.T) {
runner.config.EvalInterceptor = runner.eeOffline
runner.scenarioRunner()
}
func TestEndToEnd_ScenarioRun_OptimisticSync(t *testing.T) {
runner := e2eMinimal(t)
runner.config.Evaluators = scenarioEvals()
runner.config.EvalInterceptor = runner.optimisticSync
runner.scenarioRunner()
}