diff options
Diffstat (limited to 'swarm/network/discovery_test.go')
-rw-r--r-- | swarm/network/discovery_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/swarm/network/discovery_test.go b/swarm/network/discovery_test.go index 494bc8196..dd3299c0f 100644 --- a/swarm/network/discovery_test.go +++ b/swarm/network/discovery_test.go @@ -31,8 +31,8 @@ func TestDiscovery(t *testing.T) { params := NewHiveParams() s, pp := newHiveTester(t, params, 1, nil) - id := s.IDs[0] - raddr := NewAddrFromNodeID(id) + node := s.Nodes[0] + raddr := NewAddr(node) pp.Register(raddr) // start the hive and wait for the connection @@ -46,7 +46,7 @@ func TestDiscovery(t *testing.T) { { Code: 1, Msg: &subPeersMsg{Depth: 0}, - Peer: id, + Peer: node.ID(), }, }, }) |