mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network/simulation: More PR comments
This commit is contained in:
parent
9f6cbd858b
commit
0562e4da7d
1 changed files with 2 additions and 6 deletions
|
|
@ -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,10 +76,8 @@ func TestWaitTillHealthy(t *testing.T) {
|
|||
t.Log("Node", id)
|
||||
t.Log(kad.String())
|
||||
}
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
// now create a snapshot of this network
|
||||
snap, err := sim.Net.Snapshot()
|
||||
|
|
|
|||
Loading…
Reference in a new issue