mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
fix flaky test
This commit is contained in:
parent
c30f4489b4
commit
24314d228c
@ -391,7 +391,17 @@ var _ = SIGDescribe("ResourceQuota", func() {
|
|||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
|
||||||
ginkgo.By("Deleting a ReplicationController")
|
ginkgo.By("Deleting a ReplicationController")
|
||||||
err = f.ClientSet.CoreV1().ReplicationControllers(f.Namespace.Name).Delete(replicationController.Name, nil)
|
// Without the delete options, the object isn't actually
|
||||||
|
// removed until the GC verifies that all children have been
|
||||||
|
// detached. ReplicationControllers default to "orphan", which
|
||||||
|
// is different from most resources. (Why? To preserve a common
|
||||||
|
// workflow from prior to the GC's introduction.)
|
||||||
|
err = f.ClientSet.CoreV1().ReplicationControllers(f.Namespace.Name).Delete(replicationController.Name, &metav1.DeleteOptions{
|
||||||
|
PropagationPolicy: func() *metav1.DeletionPropagation {
|
||||||
|
p := metav1.DeletePropagationBackground
|
||||||
|
return &p
|
||||||
|
}(),
|
||||||
|
})
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
|
||||||
ginkgo.By("Ensuring resource quota status released usage")
|
ginkgo.By("Ensuring resource quota status released usage")
|
||||||
|
Loading…
Reference in New Issue
Block a user