From 12f1e6849faa6e15002f0de4ab61685903ff7617 Mon Sep 17 00:00:00 2001 From: lash Date: Fri, 16 Nov 2018 09:37:07 +0100 Subject: [PATCH] swarm/network: Linting --- swarm/network/kademlia.go | 2 +- swarm/network/kademlia_test.go | 2 +- swarm/network/stream/snapshot_retrieval_test.go | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/swarm/network/kademlia.go b/swarm/network/kademlia.go index 2fbb1a92b124..ba987813a01c 100644 --- a/swarm/network/kademlia.go +++ b/swarm/network/kademlia.go @@ -677,7 +677,7 @@ func NewPeerPotMap(kadMinProxSize int, addrs [][]byte) map[string]*PeerPot { depthTraversed = true } - // expected po in next iteration if there are no empty bins inbetween + // expected po in next iteration if there are no empty bins in between prev = po - 1 return true }) diff --git a/swarm/network/kademlia_test.go b/swarm/network/kademlia_test.go index 84c235008543..184a2d9421d5 100644 --- a/swarm/network/kademlia_test.go +++ b/swarm/network/kademlia_test.go @@ -78,7 +78,7 @@ func Register(k *Kademlia, regs ...string) { // tests the validity of neighborhood depth calculations // -// in particular, it tests that if there are one or more consequtive +// in particular, it tests that if there are one or more consecutive // empty bins above the farthest "nearest neighbor-peer" then // the depth should be set at the farthest of those empty bins // diff --git a/swarm/network/stream/snapshot_retrieval_test.go b/swarm/network/stream/snapshot_retrieval_test.go index 8f3a272524f8..932e28b32f0d 100644 --- a/swarm/network/stream/snapshot_retrieval_test.go +++ b/swarm/network/stream/snapshot_retrieval_test.go @@ -153,7 +153,6 @@ simulation's `action` function. The snapshot should have 'streamer' in its service list. */ func runFileRetrievalTest(nodeCount int) error { - t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted") sim := simulation.New(retrievalSimServiceMap) defer sim.Close() @@ -248,7 +247,6 @@ The snapshot should have 'streamer' in its service list. */ func runRetrievalTest(chunkCount int, nodeCount int) error { - t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted") sim := simulation.New(retrievalSimServiceMap) defer sim.Close()