mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
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
This commit is contained in:
commit
cfecc2fa72
@ -113,7 +113,8 @@ var _ = framework.KubeDescribe("DisruptionController", func() {
|
|||||||
shouldDeny: true,
|
shouldDeny: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, c := range evictionCases {
|
for i := range evictionCases {
|
||||||
|
c := evictionCases[i]
|
||||||
expectation := "should allow an eviction"
|
expectation := "should allow an eviction"
|
||||||
if c.shouldDeny {
|
if c.shouldDeny {
|
||||||
expectation = "should not allow an eviction"
|
expectation = "should not allow an eviction"
|
||||||
|
Loading…
Reference in New Issue
Block a user