Add an option to modify timeout for namespace duration in e2e Framework

This commit is contained in:
gmarek
2015-09-24 10:02:07 +02:00
parent 795d6827c1
commit 1459a1523f
13 changed files with 25 additions and 17 deletions

View File

@@ -81,7 +81,7 @@ var _ = Describe("Kubectl client", func() {
AfterEach(func() {
By(fmt.Sprintf("Destroying namespace for this suite %v", ns))
if err := deleteNS(c, ns); err != nil {
if err := deleteNS(c, ns, 5*time.Minute /* namespace deletion timeout */); err != nil {
Failf("Couldn't delete ns %s", err)
}
})