mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Fixed issue with the density test failing after a successful run because of
a failure to cleanup #5385
This commit is contained in:
parent
c03b080328
commit
3c9a9a4fb0
@ -187,8 +187,14 @@ var _ = PDescribe("Density", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
// Remove any remaining pods from this test
|
// Remove any remaining pods from this test if the
|
||||||
DeleteRC(c, ns, RCName)
|
// 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() {
|
It("should allow starting 100 pods per node", func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user