mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Stop referring to loop variable inside closure.
This commit is contained in:
parent
e3e26164d5
commit
f2ab87b6ac
@ -113,7 +113,8 @@ var _ = framework.KubeDescribe("DisruptionController", func() {
|
||||
shouldDeny: true,
|
||||
},
|
||||
}
|
||||
for _, c := range evictionCases {
|
||||
for i := range evictionCases {
|
||||
c := evictionCases[i]
|
||||
expectation := "should allow an eviction"
|
||||
if c.shouldDeny {
|
||||
expectation = "should not allow an eviction"
|
||||
|
Loading…
Reference in New Issue
Block a user