Skip to content

Commit 71a41e1

Browse files
committed
test: Do not capture loop variable
1 parent 3440e0c commit 71a41e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

schema/elements_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ func TestCopyInto(t *testing.T) {
151151
{"existingNamedType", []TypeDef{{Name: existing, Atom: a}}, TypeRef{NamedType: &existing}},
152152
}
153153

154-
for _, tt := range tests {
154+
for i := range tests {
155+
tt := tests[i]
155156
t.Run(tt.testName, func(t *testing.T) {
156157
t.Parallel()
157158
s := Schema{

0 commit comments

Comments
 (0)