Chore: Disable scopelint for tests (#25923)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-30 11:05:47 +02:00
committed by GitHub
parent 02cd1a441f
commit 3651a8e976
26 changed files with 10 additions and 41 deletions
@@ -21,10 +21,9 @@ func TestVersionComparison(t *testing.T) {
}
for k, v := range upgradeablePlugins {
key := k
val := v
t.Run(fmt.Sprintf("for %s should be true", k), func(t *testing.T) {
assert.True(t, shouldUpgrade(key, &val))
assert.True(t, shouldUpgrade(k, &val))
})
}
})
@@ -41,10 +40,9 @@ func TestVersionComparison(t *testing.T) {
}
for k, v := range shouldNotUpgrade {
key := k
val := v
t.Run(fmt.Sprintf("for %s should be false", k), func(t *testing.T) {
assert.False(t, shouldUpgrade(key, &val))
assert.False(t, shouldUpgrade(k, &val))
})
}
})
@@ -23,7 +23,6 @@ func TestProfilingDiagnostics(t *testing.T) {
}
for i, tc := range tcs {
tc := tc
t.Run(fmt.Sprintf("testcase %d", i), func(t *testing.T) {
os.Clearenv()
if tc.enabledEnv != "" {
@@ -56,7 +55,6 @@ func TestTracingDiagnostics(t *testing.T) {
}
for i, tc := range tcs {
tc := tc
t.Run(fmt.Sprintf("testcase %d", i), func(t *testing.T) {
os.Clearenv()
if tc.enabledEnv != "" {