diff --git a/pot/pot_test.go b/pot/pot_test.go index 72971ff18d..1175abd80c 100644 --- a/pot/pot_test.go +++ b/pot/pot_test.go @@ -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()