From 6fc969ea891cede66ea9bb87258db99083048e82 Mon Sep 17 00:00:00 2001 From: "Rodrigo C. Moraes" Date: Fri, 10 May 2024 02:18:05 -0300 Subject: [PATCH] fix: loop variable captured by func literal --- command/build_cancellation_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/build_cancellation_test.go b/command/build_cancellation_test.go index a81c057dbfa..4301c80d3eb 100644 --- a/command/build_cancellation_test.go +++ b/command/build_cancellation_test.go @@ -50,6 +50,7 @@ func TestBuildCommand_RunContext_CtxCancel(t *testing.T) { } for _, tt := range tests { + tt := tt t.Run(tt.name, func(t *testing.T) { t.Parallel() b := NewParallelTestBuilder(tt.parallelPassingTests)