aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-05-14 02:15:01 +0800
committersubtly <subtly@users.noreply.github.com>2015-05-14 02:15:01 +0800
commit8eef2b765a035b2bb1dd59c3630649ca371152ff (patch)
tree7cf12ba3386d288a08614866b5d0e922381cdf88 /p2p
parenta32693770c607a17eab6d8d068e4c9b1cddbbd54 (diff)
downloaddexon-8eef2b765a035b2bb1dd59c3630649ca371152ff.tar.gz
dexon-8eef2b765a035b2bb1dd59c3630649ca371152ff.tar.zst
dexon-8eef2b765a035b2bb1dd59c3630649ca371152ff.zip
fix test.
Diffstat (limited to 'p2p')
-rw-r--r--p2p/discover/udp_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go
index ae9e41251..7bf6df5ab 100644
--- a/p2p/discover/udp_test.go
+++ b/p2p/discover/udp_test.go
@@ -179,7 +179,7 @@ func TestUDP_findnode(t *testing.T) {
t.Errorf("wrong number of results: got %d, want %d", len(p.Nodes), bucketSize)
}
for i := range p.Nodes {
- if p.Nodes[i].ID != expected.entries[i].ID {
+ if p.Nodes[i].ID != expected.entries[i + 13].ID {
t.Errorf("result mismatch at %d:\n got: %v\n want: %v", i, p.Nodes[i], expected.entries[i])
}
}