Commit 6a0bfd7e authored by Satnam Singh's avatar Satnam Singh

Merge pull request #5387 from rrati/density-cleanup-fix-5385

Fixed issue with the density test failing after a successful run because...
parents 55ed70f7 3c9a9a4f
......@@ -187,8 +187,14 @@ var _ = PDescribe("Density", func() {
})
AfterEach(func() {
// Remove any remaining pods from this test
DeleteRC(c, ns, RCName)
// Remove any remaining pods from this test if the
// replication controller still exists and the replica count
// isn't 0. This means the controller wasn't cleaned up
// during the test so clean it up here
rc, err := c.ReplicationControllers(ns).Get(RCName)
if err == nil && rc.Spec.Replicas != 0 {
DeleteRC(c, ns, RCName)
}
})
It("should allow starting 100 pods per node", func() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment