mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
only run it in the middle of an epoch (#13303)
This commit is contained in:
parent
ff99616833
commit
440841d565
@ -380,6 +380,10 @@ func (r *testRunner) testBeaconChainSync(ctx context.Context, g *errgroup.Group,
|
||||
// Sleep a slot to make sure the synced state is made.
|
||||
time.Sleep(time.Duration(params.BeaconConfig().SecondsPerSlot) * time.Second)
|
||||
syncEvaluators := []e2etypes.Evaluator{ev.FinishedSyncing, ev.AllNodesHaveSameHead}
|
||||
// Only execute in the middle of an epoch to prevent race conditions around slot 0.
|
||||
ticker := helpers.NewEpochTicker(tickingStartTime, secondsPerEpoch)
|
||||
<-ticker.C()
|
||||
ticker.Done()
|
||||
for _, evaluator := range syncEvaluators {
|
||||
t.Run(evaluator.Name, func(t *testing.T) {
|
||||
assert.NoError(t, evaluator.Evaluation(nil, conns...), "Evaluation failed for sync node")
|
||||
|
Loading…
Reference in New Issue
Block a user