aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect/bisect_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 /pkg/bisect/bisect_test.go
parent9f05da3db0234203729d2ad179ab5a2f72bf607f (diff)
all: remove loop variables scoping
Diffstat (limited to 'pkg/bisect/bisect_test.go')
-rw-r--r--pkg/bisect/bisect_test.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go
index 7d251c9e7..d09e6804e 100644
--- a/pkg/bisect/bisect_test.go
+++ b/pkg/bisect/bisect_test.go
@@ -732,7 +732,6 @@ func TestBisectionResults(t *testing.T) {
repoCache := make(chan string, len(bisectionTests))
t.Run("group", func(tt *testing.T) {
for _, test := range bisectionTests {
- test := test
tt.Run(test.name, func(t *testing.T) {
t.Parallel()
checkTest(t, test)
@@ -889,7 +888,6 @@ func TestBisectVerdict(t *testing.T) {
}
for _, test := range tests {
- test := test
t.Run(test.name, func(t *testing.T) {
sum := test.good + test.bad + test.infra + test.skip
assert.Equal(t, test.total, sum)
@@ -1008,7 +1006,6 @@ func TestMostFrequentReport(t *testing.T) {
},
}
for _, test := range tests {
- test := test
t.Run(test.name, func(t *testing.T) {
rep, types, other := mostFrequentReports(test.reports)
assert.ElementsMatch(t, types, test.types)
@@ -1066,7 +1063,6 @@ func TestPickReleaseTags(t *testing.T) {
},
}
for _, test := range tests {
- test := test
t.Run(test.name, func(t *testing.T) {
ret := pickReleaseTags(append([]string{}, test.tags...))
assert.Equal(t, test.ret, ret)