aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/flag_test.go1
-rw-r--r--src/testing/panic_test.go1
-rw-r--r--src/testing/sub_test.go1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/testing/flag_test.go b/src/testing/flag_test.go
index 6a7754425d..fb65e15928 100644
--- a/src/testing/flag_test.go
+++ b/src/testing/flag_test.go
@@ -25,7 +25,6 @@ func TestFlag(t *testing.T) {
testenv.MustHaveExec(t)
for _, flag := range []string{"", "-test.v", "-test.v=test2json"} {
- flag := flag
t.Run(flag, func(t *testing.T) {
t.Parallel()
cmd := exec.Command(testenv.Executable(t), "-test.run=^TestFlag$", "-test_flag_arg="+flag)
diff --git a/src/testing/panic_test.go b/src/testing/panic_test.go
index fc84175ee6..01a34b0801 100644
--- a/src/testing/panic_test.go
+++ b/src/testing/panic_test.go
@@ -198,7 +198,6 @@ func TestPanicHelper(t *testing.T) {
}
})
for i := 0; i < 3; i++ {
- i := i
t.Run(fmt.Sprintf("%v", i), func(t *testing.T) {
chosen := t.Name() == *testPanicTest
if chosen && *testPanicCleanup {
diff --git a/src/testing/sub_test.go b/src/testing/sub_test.go
index bb5586d9fc..5d5573ccec 100644
--- a/src/testing/sub_test.go
+++ b/src/testing/sub_test.go
@@ -988,7 +988,6 @@ func TestConcurrentCleanup(t *T) {
var wg sync.WaitGroup
wg.Add(2)
for i := 0; i < 2; i++ {
- i := i
go func() {
t.Cleanup(func() {
// Although the calls to Cleanup are concurrent, the functions passed