Skip to content

Commit

Permalink
Capture range variable in subtests
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-osborn committed Aug 14, 2024
1 parent cd41898 commit 3792ed1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/mode/static/state/graph/reference_grant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func TestReferenceGrantResolver(t *testing.T) {
resolver := newReferenceGrantResolver(refGrants)

for _, test := range tests {
test := test
t.Run(test.msg, func(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -414,6 +415,7 @@ func TestRefAllowedFrom(t *testing.T) {
}

for _, test := range tests {
test := test
t.Run(test.name, func(t *testing.T) {
t.Parallel()

Expand Down
1 change: 1 addition & 0 deletions internal/mode/static/state/graph/tlsroute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ func TestBuildTLSRoute(t *testing.T) {
}

for _, test := range tests {
test := test
t.Run(test.name, func(t *testing.T) {
g := NewWithT(t)
t.Parallel()
Expand Down

0 comments on commit 3792ed1

Please sign in to comment.