mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
pot: Correct to reverse test results
This commit is contained in:
parent
01931c4e8d
commit
079be17d1f
1 changed files with 2 additions and 2 deletions
|
|
@ -271,7 +271,7 @@ func testPotEachNeighbour(n *Pot, pof Pof, val Val, expCount int, fs ...func(Val
|
|||
}
|
||||
}
|
||||
count++
|
||||
return count == expCount
|
||||
return count != expCount
|
||||
})
|
||||
if err == nil && count < expCount {
|
||||
return fmt.Errorf("not enough neighbours returned, expected %v, got %v", expCount, count)
|
||||
|
|
@ -555,7 +555,7 @@ func benchmarkEachNeighbourSync(t *testing.B, max, count int, d time.Duration) {
|
|||
n.EachNeighbour(val, pof, func(v Val, po int) bool {
|
||||
time.Sleep(d)
|
||||
m++
|
||||
return m == count
|
||||
return m != count
|
||||
})
|
||||
}
|
||||
t.StopTimer()
|
||||
|
|
|
|||
Loading…
Reference in a new issue