From 079be17d1fc87ddac8f7f5046128a60f3f375702 Mon Sep 17 00:00:00 2001 From: lash Date: Tue, 16 Jan 2018 14:28:02 +0100 Subject: [PATCH] pot: Correct to reverse test results --- pot/pot_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()