Commit 49351fe8 authored by Anatolie Lupacescu's avatar Anatolie Lupacescu Committed by GitHub

fix bad connected value (#1522)

parent 796c76a8
...@@ -927,12 +927,12 @@ func TestSnapshot(t *testing.T) { ...@@ -927,12 +927,12 @@ func TestSnapshot(t *testing.T) {
a := test.RandomAddress() a := test.RandomAddress()
addOne(t, signer, kad, ab, a) addOne(t, signer, kad, ab, a)
snap := kad.Snapshot()
waitConn(t, conns) waitConn(t, conns)
if snap.Connected != 0 { snap := kad.Snapshot()
t.Errorf("expected %d connected peers but got %d", 0, snap.Connected)
if snap.Connected != 1 {
t.Errorf("expected %d connected peers but got %d", 1, snap.Connected)
} }
if snap.Population != 1 { if snap.Population != 1 {
t.Errorf("expected population %d but got %d", 1, snap.Population) t.Errorf("expected population %d but got %d", 1, snap.Population)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment