Stop referring to loop variable inside closure.

This commit is contained in:
Matt Liggett 2016-09-20 15:32:35 -07:00
parent e3e26164d5
commit f2ab87b6ac

View File

@ -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"