mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +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++
|
count++
|
||||||
return count == expCount
|
return count != expCount
|
||||||
})
|
})
|
||||||
if err == nil && count < expCount {
|
if err == nil && count < expCount {
|
||||||
return fmt.Errorf("not enough neighbours returned, expected %v, got %v", expCount, count)
|
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 {
|
n.EachNeighbour(val, pof, func(v Val, po int) bool {
|
||||||
time.Sleep(d)
|
time.Sleep(d)
|
||||||
m++
|
m++
|
||||||
return m == count
|
return m != count
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
t.StopTimer()
|
t.StopTimer()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue