Chore: Disable scopelint for tests (#25923)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user