mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +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()
|
q.highestExpectedSlot = q.blocksFetcher.bestFinalizedSlot()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
log.Debug("Highest expected slot reached")
|
log.WithField("slot", q.highestExpectedSlot).Debug("Highest expected slot reached")
|
||||||
q.cancel()
|
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
|
||||||
// name: "Multiple peers with multiple failures",
|
expectedBlockSlots: makeSequence(1, 320),
|
||||||
// currentSlot: 320, // 10 epochs
|
peers: []*peerData{
|
||||||
// expectedBlockSlots: makeSequence(1, 320),
|
{
|
||||||
// peers: []*peerData{
|
blocks: makeSequence(1, 320),
|
||||||
// {
|
finalizedEpoch: 9,
|
||||||
// blocks: makeSequence(1, 320),
|
headSlot: 320,
|
||||||
// finalizedEpoch: 4,
|
},
|
||||||
// headSlot: 320,
|
{
|
||||||
// },
|
blocks: makeSequence(1, 320),
|
||||||
// {
|
finalizedEpoch: 9,
|
||||||
// blocks: makeSequence(1, 320),
|
headSlot: 320,
|
||||||
// finalizedEpoch: 4,
|
failureSlots: makeSequence(1, 320),
|
||||||
// headSlot: 320,
|
},
|
||||||
// failureSlots: makeSequence(1, 320),
|
{
|
||||||
// },
|
blocks: makeSequence(1, 320),
|
||||||
// {
|
finalizedEpoch: 9,
|
||||||
// blocks: makeSequence(1, 320),
|
headSlot: 320,
|
||||||
// finalizedEpoch: 4,
|
failureSlots: makeSequence(1, 320),
|
||||||
// headSlot: 320,
|
},
|
||||||
// failureSlots: makeSequence(1, 320),
|
{
|
||||||
// },
|
blocks: makeSequence(1, 320),
|
||||||
// {
|
finalizedEpoch: 9,
|
||||||
// blocks: makeSequence(1, 320),
|
headSlot: 320,
|
||||||
// finalizedEpoch: 4,
|
failureSlots: makeSequence(1, 320),
|
||||||
// headSlot: 320,
|
},
|
||||||
// failureSlots: makeSequence(1, 320),
|
},
|
||||||
// },
|
},
|
||||||
// },
|
|
||||||
//},
|
|
||||||
{
|
{
|
||||||
name: "Multiple peers with different finalized epoch",
|
name: "Multiple peers with different finalized epoch",
|
||||||
currentSlot: 320, // 10 epochs
|
currentSlot: 320, // 10 epochs
|
||||||
|
Loading…
Reference in New Issue
Block a user