From d8b69987cec9ad3f701258297dedb8b1eae46196 Mon Sep 17 00:00:00 2001 From: Mikhail Elhimov Date: Sat, 11 Jan 2025 13:38:03 +0300 Subject: [PATCH] test: fix loopclosure problem detected by golangci-lint-v1.63 Closes #1081 --- cli/config/single_or_array_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/config/single_or_array_test.go b/cli/config/single_or_array_test.go index d0925880b..98f8a8649 100644 --- a/cli/config/single_or_array_test.go +++ b/cli/config/single_or_array_test.go @@ -19,6 +19,7 @@ type singleOrArrayCase[T any] struct { func testSingleOrArrayJSON[T any](t *testing.T, tests []singleOrArrayCase[T]) { for _, tt := range tests { + tt := tt t.Run(tt.name, func(t *testing.T) { t.Parallel() @@ -148,6 +149,7 @@ func TestSingleOrArrayJSON(t *testing.T) { func testSingleOrArrayYAML[T any](t *testing.T, tests []singleOrArrayCase[T]) { for _, tt := range tests { + tt := tt t.Run(tt.name, func(t *testing.T) { t.Parallel()