From f2ab87b6ac5e7d7a4c89328e33b85c8d5c0d3047 Mon Sep 17 00:00:00 2001 From: Matt Liggett Date: Tue, 20 Sep 2016 15:32:35 -0700 Subject: [PATCH] Stop referring to loop variable inside closure. --- test/e2e/disruption.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/disruption.go b/test/e2e/disruption.go index 99f0b6e1303..e9ff04b2e22 100644 --- a/test/e2e/disruption.go +++ b/test/e2e/disruption.go @@ -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"