Add cleanup function

This commit is contained in:
Caleb Woodbine 2020-06-04 09:58:15 +12:00
parent 782bb43c4c
commit 076d96236e

View File

@ -377,6 +377,9 @@ var _ = SIGDescribe("ReplicationController", func() {
framework.ExpectEqual(eventFound, true, "failed to find RC %v event", watch.Added)
return actualWatchEvents
}, func () (err error) {
_ = f.ClientSet.CoreV1().ReplicationControllers(testRcNamespace).DeleteCollection(context.TODO(), metav1.DeleteOptions{}, metav1.ListOptions{LabelSelector: "test-rc-static=true"})
return err
})
})
})