Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate anti flakes to prevent E2E issues (#5238)
* Separate anti flakes * Gaz
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package endtoend | ||
|
||
import ( | ||
"testing" | ||
|
||
ev "github.com/prysmaticlabs/prysm/endtoend/evaluators" | ||
e2eParams "github.com/prysmaticlabs/prysm/endtoend/params" | ||
"github.com/prysmaticlabs/prysm/endtoend/types" | ||
"github.com/prysmaticlabs/prysm/shared/params" | ||
"github.com/prysmaticlabs/prysm/shared/testutil" | ||
) | ||
|
||
func TestEndToEnd_AntiFlake_MinimalConfig_2(t *testing.T) { | ||
testutil.ResetCache() | ||
params.UseMinimalConfig() | ||
|
||
minimalConfig := &types.E2EConfig{ | ||
BeaconFlags: []string{"--minimal-config", "--custom-genesis-delay=10"}, | ||
ValidatorFlags: []string{"--minimal-config"}, | ||
EpochsToRun: 3, | ||
TestSync: false, | ||
TestSlasher: false, | ||
Evaluators: []types.Evaluator{ | ||
ev.PeersConnect, | ||
ev.ValidatorsAreActive, | ||
}, | ||
} | ||
if err := e2eParams.Init(4); err != nil { | ||
t.Fatal(err) | ||
} | ||
|
||
runEndToEndTest(t, minimalConfig) | ||
} |