Commit 64479aa9 authored by Rodrigo Campos's avatar Rodrigo Campos

Remove deferred deletion call missed by 53ec6e60

Commit 53ec6e60 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.
parent ad03a43d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment