// AfterEach deletes the namespace, after reading its events.
AfterEach deletes the namespace, after reading its events.
// AfterEach deletes the namespace after reading its events .
func (f *Framework) AfterEach() {
	By("Collecting logs")
	if CurrentGinkgoTestDescription().Failed && TestContext.DumpLogsOnFailure {
		logFunc := Logf
		LogPodsWithLabels(f.ClientSet, f.Namespace.Name, map[string]string{}, logFunc)
	}
	By("Run cleanup actions")
	RemoveCleanupAction(f.cleanupHandle)
	By("Delete testing namespace")
	err := DeleteNS(f.ClientSet, f.Namespace.Name, DefaultNamespaceDeletionTimeout)
	if err != nil {
		Failf(fmt.Sprintf("Can't delete namespace: %s", err))
	}
}
func ( f * Framework ) AfterEach ( ) { By ( " " ) if CurrentGinkgoTestDescription ( ) . Failed && TestContext . DumpLogsOnFailure { logFunc := Logf LogPodsWithLabels ( f . ClientSet , f . Namespace . Name , map [ string ] string { } , logFunc ) } By ( " " ) RemoveCleanupAction ( f . cleanupHandle ) By ( " " ) err := DeleteNS ( f . ClientSet , f . Namespace . Name , DefaultNamespaceDeletionTimeout ) if err != nil { Failf ( fmt . Sprintf ( " " , err ) ) } }
AfterEach deletes the namespace, after reading its events.
AfterEach deletes the namespace after reading its events .
// TODO: log in file if ReportDir is set