1
0
mirror of https://github.com/golang/go synced 2024-11-23 12:30:11 -07:00

crypto/rsa: fix loop variable capture in test

Should fix builds.

Change-Id: I309eccec8d08931b1ef8fee9327a08a97c6bf871
Reviewed-on: https://go-review.googlesource.com/c/go/+/450738
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
This commit is contained in:
Cherry Mui 2022-11-15 13:56:48 -05:00 committed by Matthew Dempsky
parent 96711e4d8b
commit 678cd71d11

View File

@ -148,6 +148,7 @@ func TestEverything(t *testing.T) {
max = 2048
}
for size := min; size <= max; size++ {
size := size
t.Run(fmt.Sprintf("%d", size), func(t *testing.T) {
t.Parallel()
priv, err := GenerateKey(rand.Reader, size)