mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 14:52:46 +08:00
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))
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user