mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
Re-enables multi-failure test case in round robin (#6143)
* re-enables multi-failure test case in round robin
This commit is contained in:
parent
92f23df368
commit
fd3cb0be55
@ -141,7 +141,7 @@ func (q *blocksQueue) loop() {
|
||||
q.highestExpectedSlot = q.blocksFetcher.bestFinalizedSlot()
|
||||
continue
|
||||
}
|
||||
log.Debug("Highest expected slot reached")
|
||||
log.WithField("slot", q.highestExpectedSlot).Debug("Highest expected slot reached")
|
||||
q.cancel()
|
||||
}
|
||||
|
||||
|
@ -117,38 +117,36 @@ func TestRoundRobinSync(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// TODO(3147): Handle multiple failures.
|
||||
//{
|
||||
// name: "Multiple peers with multiple failures",
|
||||
// currentSlot: 320, // 10 epochs
|
||||
// expectedBlockSlots: makeSequence(1, 320),
|
||||
// peers: []*peerData{
|
||||
// {
|
||||
// blocks: makeSequence(1, 320),
|
||||
// finalizedEpoch: 4,
|
||||
// headSlot: 320,
|
||||
// },
|
||||
// {
|
||||
// blocks: makeSequence(1, 320),
|
||||
// finalizedEpoch: 4,
|
||||
// headSlot: 320,
|
||||
// failureSlots: makeSequence(1, 320),
|
||||
// },
|
||||
// {
|
||||
// blocks: makeSequence(1, 320),
|
||||
// finalizedEpoch: 4,
|
||||
// headSlot: 320,
|
||||
// failureSlots: makeSequence(1, 320),
|
||||
// },
|
||||
// {
|
||||
// blocks: makeSequence(1, 320),
|
||||
// finalizedEpoch: 4,
|
||||
// headSlot: 320,
|
||||
// failureSlots: makeSequence(1, 320),
|
||||
// },
|
||||
// },
|
||||
//},
|
||||
{
|
||||
name: "Multiple peers with multiple failures",
|
||||
currentSlot: 320, // 10 epochs
|
||||
expectedBlockSlots: makeSequence(1, 320),
|
||||
peers: []*peerData{
|
||||
{
|
||||
blocks: makeSequence(1, 320),
|
||||
finalizedEpoch: 9,
|
||||
headSlot: 320,
|
||||
},
|
||||
{
|
||||
blocks: makeSequence(1, 320),
|
||||
finalizedEpoch: 9,
|
||||
headSlot: 320,
|
||||
failureSlots: makeSequence(1, 320),
|
||||
},
|
||||
{
|
||||
blocks: makeSequence(1, 320),
|
||||
finalizedEpoch: 9,
|
||||
headSlot: 320,
|
||||
failureSlots: makeSequence(1, 320),
|
||||
},
|
||||
{
|
||||
blocks: makeSequence(1, 320),
|
||||
finalizedEpoch: 9,
|
||||
headSlot: 320,
|
||||
failureSlots: makeSequence(1, 320),
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Multiple peers with different finalized epoch",
|
||||
currentSlot: 320, // 10 epochs
|
||||
|
Loading…
Reference in New Issue
Block a user