Commit cfecc2fa authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #33133 from mml/omg-loop-variables

Automatic merge from submit-queue Stop referring to loop variable inside closure. Prior to this, I was actually running the same (last) test 5 times in a row. :-( Fixes #33137
parents 0986a01f f2ab87b6
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment