aboutsummaryrefslogtreecommitdiffstats
path: root/modules/globallock/globallock_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/globallock/globallock_test.go')
-rw-r--r--modules/globallock/globallock_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/globallock/globallock_test.go b/modules/globallock/globallock_test.go
index 0143fc6833..8d55d9f699 100644
--- a/modules/globallock/globallock_test.go
+++ b/modules/globallock/globallock_test.go
@@ -70,7 +70,7 @@ func testLockAndDo(t *testing.T) {
count := 0
wg := sync.WaitGroup{}
wg.Add(concurrency)
- for i := 0; i < concurrency; i++ {
+ for range concurrency {
go func() {
defer wg.Done()
err := LockAndDo(ctx, "test", func(ctx context.Context) error {