mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/discover: fix test
This commit is contained in:
parent
2c5bc1d843
commit
3dfe877b1d
1 changed files with 2 additions and 2 deletions
|
|
@ -110,10 +110,10 @@ func TestRevalidation_endpointUpdate(t *testing.T) {
|
|||
}
|
||||
tr.handleResponse(tab, resp)
|
||||
|
||||
if !tr.fast.contains(node.ID()) {
|
||||
if tr.fast.nodes[0].ID() != node.ID() {
|
||||
t.Fatal("node not contained in fast revalidation list")
|
||||
}
|
||||
if node.isValidatedLive {
|
||||
if tr.fast.nodes[0].isValidatedLive {
|
||||
t.Fatal("node is marked live after endpoint change")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue