let load and density e2e tests use GC if it's on

This commit is contained in:
Chao Xu
2016-08-08 17:11:21 -07:00
parent faffbe4e18
commit 3688a78769
16 changed files with 83 additions and 29 deletions

View File

@@ -219,7 +219,7 @@ func SpreadRCOrFail(f *framework.Framework, replicaCount int32, image string) {
// Cleanup the replication controller when we are done.
defer func() {
// Resize the replication controller to zero to get rid of pods.
if err := framework.DeleteRC(f.Client, f.Namespace.Name, controller.Name); err != nil {
if err := framework.DeleteRCAndPods(f.Client, f.Namespace.Name, controller.Name); err != nil {
framework.Logf("Failed to cleanup replication controller %v: %v.", controller.Name, err)
}
}()