mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
p2p/discover: really fix tests
This commit is contained in:
parent
d8fe86c6b9
commit
28466e4cf2
1 changed files with 7 additions and 2 deletions
|
|
@ -286,8 +286,13 @@ func TestUDP_findnode(t *testing.T) {
|
|||
}
|
||||
})
|
||||
}
|
||||
waitNeighbors(expected.entries[:maxNeighbors])
|
||||
waitNeighbors(expected.entries[maxNeighbors:])
|
||||
// Receive replies.
|
||||
want := expected.entries
|
||||
if len(want) > maxNeighbors {
|
||||
waitNeighbors(want[:maxNeighbors])
|
||||
want = want[maxNeighbors:]
|
||||
}
|
||||
waitNeighbors(want)
|
||||
}
|
||||
|
||||
func TestUDP_findnodeMultiReply(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue