Fix failing test.

This commit is contained in:
cheatfate 2020-03-12 02:02:33 +02:00
parent 8d6bfd7ce7
commit 399e91fe5b
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 16 additions and 7 deletions

View File

@ -339,21 +339,30 @@ proc peerGroupTests(): Future[bool] {.async.} =
slot1.peers = @[peers[3], peers[4], peers[5]]
var slot2 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot2.peers = @[peers[6], peers[7], peers[8]]
var slot3 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot3.peers = @[peers[9], peers[10], peers[11]]
var slot4 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot4.peers = @[peers[12], peers[13], peers[14]]
var slot31 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot31.peers = @[peers[9], peers[10], peers[11]]
var slot32 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot32.peers = @[peers[9], peers[10], peers[11]]
var slot33 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot33.peers = @[peers[9], peers[10], peers[11]]
var slot41 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot41.peers = @[peers[12], peers[13], peers[14]]
var slot42 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot42.peers = @[peers[12], peers[13], peers[14]]
var slot5 = newPeerSlot[SimplePeer, SimplePeerKey](sman)
slot5.peers = @[peers[15], peers[16], peers[17]]
var group0 = newPeerGroup(sman)
group0.slots = @[slot0, slot1, slot2]
var group1 = newPeerGroup(sman)
group1.slots = @[slot0, slot1, slot3]
group1.slots = @[slot0, slot1, slot31]
var group2 = newPeerGroup(sman)
group2.slots = @[slot0, slot3, slot4]
group2.slots = @[slot0, slot32, slot41]
var group3 = newPeerGroup(sman)
group3.slots = @[slot3, slot4, slot5]
group3.slots = @[slot33, slot42, slot5]
var s0 = await group0.getBlocks(Slot(10000), 10'u64)
cleanup()