Skip to content

Commit

Permalink
Stop referring to loop variable inside closure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mml committed Sep 20, 2016
1 parent e3e2616 commit f2ab87b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/disruption.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f2ab87b

Please sign in to comment.