From 678cd71d11f927fcde0c1fa5d380860ce77f8391 Mon Sep 17 00:00:00 2001 From: Cherry Mui Date: Tue, 15 Nov 2022 13:56:48 -0500 Subject: [PATCH] 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 Reviewed-by: Bryan Mills Run-TryBot: Cherry Mui Reviewed-by: Filippo Valsorda --- src/crypto/rsa/rsa_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crypto/rsa/rsa_test.go b/src/crypto/rsa/rsa_test.go index 0b1c8fb320b..9db78cec618 100644 --- a/src/crypto/rsa/rsa_test.go +++ b/src/crypto/rsa/rsa_test.go @@ -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)