aboutsummaryrefslogtreecommitdiffstats
path: root/prog/export_test.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-02-14 19:01:57 +0100
committerTaras Madan <tarasmadan@google.com>2025-02-17 08:18:57 +0000
commit4121cf9df313ee111c01fde1f255d010c8d941cd (patch)
treedcd0d104c8c35997103297dfb7dc1f0de6b77b8e /prog/export_test.go
parent9f05da3db0234203729d2ad179ab5a2f72bf607f (diff)
all: remove loop variables scoping
Diffstat (limited to 'prog/export_test.go')
-rw-r--r--prog/export_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/prog/export_test.go b/prog/export_test.go
index 0b1b8c599..28eb99b9e 100644
--- a/prog/export_test.go
+++ b/prog/export_test.go
@@ -35,7 +35,6 @@ func initTest(t *testing.T) (*Target, rand.Source, int) {
func testEachTarget(t *testing.T, fn func(t *testing.T, target *Target)) {
t.Parallel()
for _, target := range AllTargets() {
- target := target
t.Run(fmt.Sprintf("%v/%v", target.OS, target.Arch), func(t *testing.T) {
skipTargetRace(t, target)
t.Parallel()
@@ -50,7 +49,6 @@ func testEachTargetRandom(t *testing.T, fn func(t *testing.T, target *Target, rs
iters := max(testutil.IterCount()/len(targets), 3)
rs0 := testutil.RandSource(t)
for _, target := range targets {
- target := target
rs := rand.NewSource(rs0.Int63())
t.Run(fmt.Sprintf("%v/%v", target.OS, target.Arch), func(t *testing.T) {
skipTargetRace(t, target)