accounts/abi: shadow loop variables in TestPack to fix parallel subtest capture

This commit is contained in:
sashass1315 2025-09-30 15:22:09 +03:00 committed by GitHub
parent 1487a8577d
commit 01961150b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,7 @@ import (
func TestPack(t *testing.T) {
t.Parallel()
for i, test := range packUnpackTests {
i, test := i, test
t.Run(strconv.Itoa(i), func(t *testing.T) {
t.Parallel()
encb, err := hex.DecodeString(test.packed)