From 8eef2b765a035b2bb1dd59c3630649ca371152ff Mon Sep 17 00:00:00 2001 From: subtly Date: Wed, 13 May 2015 20:15:01 +0200 Subject: [PATCH] fix test. --- p2p/discover/udp_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) } }