From 1a3820d4709ce836649fa0036b8144eb6f5cc9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Osipiuk?= Date: Fri, 8 Jun 2018 15:38:32 +0200 Subject: [PATCH] Add cleanup for gpu-pod-rc in cluster_size_autoscaling.go --- test/e2e/autoscaling/cluster_size_autoscaling.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/autoscaling/cluster_size_autoscaling.go b/test/e2e/autoscaling/cluster_size_autoscaling.go index 9b5699af310..14a6f8f9a54 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -227,6 +227,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { By("Schedule a pod which requires GPU") framework.ExpectNoError(scheduleGpuPod(f, "gpu-pod-rc")) + defer framework.DeleteRCAndWaitForGC(f.ClientSet, f.Namespace.Name, "gpu-pod-rc") framework.ExpectNoError(WaitForClusterSizeFunc(f.ClientSet, func(size int) bool { return size == nodeCount+1 }, scaleUpTimeout)) @@ -244,6 +245,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { By("Schedule a single pod which requires GPU") framework.ExpectNoError(scheduleGpuPod(f, "gpu-pod-rc")) + defer framework.DeleteRCAndWaitForGC(f.ClientSet, f.Namespace.Name, "gpu-pod-rc") By("Enable autoscaler") framework.ExpectNoError(enableAutoscaler(gpuPoolName, 0, 2)) @@ -294,6 +296,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { By("Schedule a single pod which requires GPU") framework.ExpectNoError(scheduleGpuPod(f, "gpu-pod-rc")) + defer framework.DeleteRCAndWaitForGC(f.ClientSet, f.Namespace.Name, "gpu-pod-rc") By("Enable autoscaler") framework.ExpectNoError(enableAutoscaler(gpuPoolName, 0, 1))