From 6895b42808307f680d1ce38b86d19b0ebd19aa95 Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Fri, 18 Mar 2022 23:25:42 +0300 Subject: [PATCH] Fix --- keylock/speed_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keylock/speed_test.go b/keylock/speed_test.go index 1c452e1..7483193 100644 --- a/keylock/speed_test.go +++ b/keylock/speed_test.go @@ -70,7 +70,7 @@ func BenchmarkKeyLock_NoBusyWait(b *testing.B) { cancel := make(chan struct{}) defer close(cancel) - for i := 0; i < 5000; i++ { + for i := 0; i < 1000; i++ { go func() { l.LockKeys(lockedKey, cancel) }()