From 0562e4da7da96fc64f4fef2573d6a308eaf99fb1 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Tue, 26 Feb 2019 11:57:45 -0500 Subject: [PATCH] swarm/network/simulation: More PR comments --- swarm/network/simulation/kademlia_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/swarm/network/simulation/kademlia_test.go b/swarm/network/simulation/kademlia_test.go index 137027f955..4cfcecd8ef 100644 --- a/swarm/network/simulation/kademlia_test.go +++ b/swarm/network/simulation/kademlia_test.go @@ -49,13 +49,11 @@ func TestWaitTillHealthy(t *testing.T) { sim := New(createSimServiceMap(true)) // connect and... - _, err := sim.AddNodesAndConnectRing(testNodesNum) + nodeIDs, err := sim.AddNodesAndConnectRing(testNodesNum) if err != nil { t.Fatal(err) } - // for each node... - nodeIDs := sim.UpNodeIDs() // array of all overlay addresses var addrs [][]byte // iterate once to be able to build the peer map @@ -78,9 +76,7 @@ func TestWaitTillHealthy(t *testing.T) { t.Log("Node", id) t.Log(kad.String()) } - if err != nil { - t.Fatal(err) - } + t.Fatal(err) } // now create a snapshot of this network