swarm/network: edited tests to pass new saturated check

This commit is contained in:
Fabio Barone 2019-02-08 11:17:11 -05:00
parent 6fba8745fb
commit e1878681f7

View file

@ -241,7 +241,7 @@ func TestHealthStrict(t *testing.T) {
// know three peers, connected to the two deepest // know three peers, connected to the two deepest
// healthy // healthy
tk.Register("00000000") tk.Register("00000000")
tk.checkHealth(true) tk.checkHealth(false)
// know three peers, connected to all three // know three peers, connected to all three
// healthy // healthy
@ -279,9 +279,9 @@ func TestHealthStrict(t *testing.T) {
tk.checkHealth(true) tk.checkHealth(true)
// add peer in bin 1 // 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.Register("10000000")
tk.checkHealth(true) tk.checkHealth(false)
// connect peer in bin 1 // connect peer in bin 1
// depth change, is now 1 // depth change, is now 1
@ -305,9 +305,9 @@ func TestHealthStrict(t *testing.T) {
tk.checkHealth(true) tk.checkHealth(true)
// add peer in bin 2 // add peer in bin 2
// healthy, no depth change // unhealthy, no depth change
tk.Register("11000000") tk.Register("11000000")
tk.checkHealth(true) tk.checkHealth(false)
// connect peer in bin 2 // connect peer in bin 2
// depth change - as we already have peers in bin 3 and 4, // depth change - as we already have peers in bin 3 and 4,