From d000f4d22f136113a8f9821ef3765c0503f88a01 Mon Sep 17 00:00:00 2001 From: rot1024 Date: Wed, 11 May 2022 16:53:21 +0900 Subject: [PATCH] test: util.SyncMap.Range test sometimes fails --- pkg/util/map_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/map_test.go b/pkg/util/map_test.go index 2ebc2b8a..d4fed78e 100644 --- a/pkg/util/map_test.go +++ b/pkg/util/map_test.go @@ -79,9 +79,9 @@ func TestSyncMap_Range(t *testing.T) { s.Range(func(k string, v int) bool { if k == "a" { vv = v - return true + return false } - return false + return true }) assert.Equal(t, 1, vv) }