From 1c4f31b3747ced1d652e0892315578f80aca8547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Osipiuk?= Date: Tue, 5 Jun 2018 10:36:11 +0200 Subject: [PATCH] Create new variable for each iteration step --- test/e2e/autoscaling/cluster_size_autoscaling.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/autoscaling/cluster_size_autoscaling.go b/test/e2e/autoscaling/cluster_size_autoscaling.go index c4c324aa903..9b5699af310 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -209,6 +209,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { supportedGpuTypes := []string{"nvidia-tesla-k80", "nvidia-tesla-v100", "nvidia-tesla-p100"} for _, gpuType := range supportedGpuTypes { + gpuType := gpuType // create new variable for each iteration step It(fmt.Sprintf("Should scale up GPU pool from 0 [GpuType:%s] [Feature:ClusterSizeAutoscalingGpu]", gpuType), func() { framework.SkipUnlessProviderIs("gke")