aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-07 04:48:57 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-07 04:48:57 +0800
commit24d44f35f2cf17b07330a7e7be79abc2b6b92fc6 (patch)
treea64252ccd5ed06a9553af310a572e1dc95e92e55 /p2p/server_test.go
parent323216ed85b48abec07266a203b731e7491d4286 (diff)
parent2adcc31bb48af0dee979f2b4ab255d9af21fd097 (diff)
downloadgo-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar
go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.gz
go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.bz2
go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.lz
go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.xz
go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.tar.zst
go-tangerine-24d44f35f2cf17b07330a7e7be79abc2b6b92fc6.zip
Merge pull request #791 from fjl/discover-sha3-distance
p2p/discover: sha3-based node distance
Diffstat (limited to 'p2p/server_test.go')
-rw-r--r--p2p/server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server_test.go b/p2p/server_test.go
index 53cc3c258..86514b650 100644
--- a/p2p/server_test.go
+++ b/p2p/server_test.go
@@ -102,7 +102,7 @@ func TestServerDial(t *testing.T) {
// tell the server to connect
tcpAddr := listener.Addr().(*net.TCPAddr)
- srv.SuggestPeer(&discover.Node{IP: tcpAddr.IP, TCPPort: tcpAddr.Port})
+ srv.SuggestPeer(&discover.Node{IP: tcpAddr.IP, TCP: uint16(tcpAddr.Port)})
select {
case conn := <-accepted: