Skip to content

Commit 3792ed1

Browse files
author
Kate Osborn
committed
Capture range variable in subtests
1 parent cd41898 commit 3792ed1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

internal/mode/static/state/graph/reference_grant_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ func TestReferenceGrantResolver(t *testing.T) {
162162
resolver := newReferenceGrantResolver(refGrants)
163163

164164
for _, test := range tests {
165+
test := test
165166
t.Run(test.msg, func(t *testing.T) {
166167
t.Parallel()
167168

@@ -414,6 +415,7 @@ func TestRefAllowedFrom(t *testing.T) {
414415
}
415416

416417
for _, test := range tests {
418+
test := test
417419
t.Run(test.name, func(t *testing.T) {
418420
t.Parallel()
419421

internal/mode/static/state/graph/tlsroute_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ func TestBuildTLSRoute(t *testing.T) {
551551
}
552552

553553
for _, test := range tests {
554+
test := test
554555
t.Run(test.name, func(t *testing.T) {
555556
g := NewWithT(t)
556557
t.Parallel()

0 commit comments

Comments
 (0)