Deleting a namespace is insufficient to cleanup in e2e

Graceful deletion requires more time to terminate namespaces, and not
waiting for namespaces to delete causes scheduling errors
This commit is contained in:
Clayton Coleman
2015-08-18 17:13:13 -04:00
parent 5000252e46
commit dcad51b90e
9 changed files with 10 additions and 10 deletions

View File

@@ -63,7 +63,7 @@ var _ = Describe("Examples e2e", func() {
AfterEach(func() {
By(fmt.Sprintf("Destroying namespace for this suite %v", ns))
if err := c.Namespaces().Delete(ns); err != nil {
if err := deleteNS(c, ns); err != nil {
Failf("Couldn't delete ns %s", err)
}
})
@@ -458,7 +458,7 @@ var _ = Describe("Examples e2e", func() {
var err error
namespaces[i], err = createTestingNS(fmt.Sprintf("dnsexample%d", i), c)
if namespaces[i] != nil {
defer c.Namespaces().Delete(namespaces[i].Name)
defer deleteNS(c, namespaces[i].Name)
}
Expect(err).NotTo(HaveOccurred())
}