2022-05-20 09:34:10 +00:00
|
|
|
package endtoend
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestEndToEnd_ScenarioRun_BeaconOffline(t *testing.T) {
|
2022-05-25 22:52:43 +00:00
|
|
|
runner := e2eMinimal(t)
|
2022-05-20 09:34:10 +00:00
|
|
|
|
|
|
|
runner.config.Evaluators = scenarioEvals()
|
|
|
|
runner.config.EvalInterceptor = runner.singleNodeOffline
|
|
|
|
runner.scenarioRunner()
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestEndToEnd_ScenarioRun_AllvalidatorsOffline(t *testing.T) {
|
2022-05-25 22:52:43 +00:00
|
|
|
runner := e2eMinimal(t)
|
2022-05-20 09:34:10 +00:00
|
|
|
|
|
|
|
runner.config.Evaluators = scenarioEvals()
|
|
|
|
runner.config.EvalInterceptor = runner.allValidatorsOffline
|
|
|
|
runner.scenarioRunner()
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestEndToEnd_ScenarioRun_EEOffline(t *testing.T) {
|
|
|
|
t.Skip("TODO(#10242) Prysm is current unable to handle an offline e2e")
|
2022-05-25 22:52:43 +00:00
|
|
|
runner := e2eMinimal(t)
|
2022-05-20 09:34:10 +00:00
|
|
|
|
|
|
|
runner.config.Evaluators = scenarioEvals()
|
|
|
|
runner.config.EvalInterceptor = runner.eeOffline
|
|
|
|
runner.scenarioRunner()
|
|
|
|
}
|
2022-06-09 23:24:53 +00:00
|
|
|
|
|
|
|
func TestEndToEnd_ScenarioRun_OptimisticSync(t *testing.T) {
|
|
|
|
runner := e2eMinimal(t)
|
|
|
|
|
|
|
|
runner.config.Evaluators = scenarioEvals()
|
|
|
|
runner.config.EvalInterceptor = runner.optimisticSync
|
|
|
|
runner.scenarioRunner()
|
|
|
|
}
|