Remove deferred deletion call missed by 53ec6e6

Commit 53ec6e6 missed to remove this deferred call (probably due to a
rebase).

I noticied it while working with the code. I'm not sure why the original
commits removes them, but it seems the right thing to do.
pull/6/head
Rodrigo Campos 2016-10-19 00:53:25 -03:00
parent ad03a43dbe
commit 64479aa9a5
1 changed files with 0 additions and 6 deletions

View File

@ -189,12 +189,6 @@ func doSecretE2EWithoutMapping(f *framework.Framework, defaultMode *int32) {
)
By(fmt.Sprintf("Creating secret with name %s", secret.Name))
defer func() {
By("Cleaning up the secret")
if err := f.Client.Secrets(f.Namespace.Name).Delete(secret.Name); err != nil {
framework.Failf("unable to delete secret %v: %v", secret.Name, err)
}
}()
var err error
if secret, err = f.Client.Secrets(f.Namespace.Name).Create(secret); err != nil {
framework.Failf("unable to create test secret %s: %v", secret.Name, err)