From 399e91fe5b28e3ab9391d41c288e6a72af4b9fc8 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 12 Mar 2020 02:02:33 +0200 Subject: [PATCH] Fix failing test. --- tests/test_sync_manager.nim | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/tests/test_sync_manager.nim b/tests/test_sync_manager.nim index 100a9bd50..1a6af2f4a 100644 --- a/tests/test_sync_manager.nim +++ b/tests/test_sync_manager.nim @@ -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()