From e1878681f7223cca6a6384d74f6c059ac39676f2 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Fri, 8 Feb 2019 11:17:11 -0500 Subject: [PATCH] swarm/network: edited tests to pass new saturated check --- swarm/network/kademlia_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/swarm/network/kademlia_test.go b/swarm/network/kademlia_test.go index 6ae653729b..b4663eee5e 100644 --- a/swarm/network/kademlia_test.go +++ b/swarm/network/kademlia_test.go @@ -241,7 +241,7 @@ func TestHealthStrict(t *testing.T) { // know three peers, connected to the two deepest // healthy tk.Register("00000000") - tk.checkHealth(true) + tk.checkHealth(false) // know three peers, connected to all three // healthy @@ -279,9 +279,9 @@ func TestHealthStrict(t *testing.T) { tk.checkHealth(true) // add peer in bin 1 - // healthy, as it is known but not connected + // unhealthy, as it is known but not connected tk.Register("10000000") - tk.checkHealth(true) + tk.checkHealth(false) // connect peer in bin 1 // depth change, is now 1 @@ -305,9 +305,9 @@ func TestHealthStrict(t *testing.T) { tk.checkHealth(true) // add peer in bin 2 - // healthy, no depth change + // unhealthy, no depth change tk.Register("11000000") - tk.checkHealth(true) + tk.checkHealth(false) // connect peer in bin 2 // depth change - as we already have peers in bin 3 and 4,