Fix User Guide tests failing and triggereing other 2nd-level cache tests to fail as well

This commit is contained in:
Vlad Mihalcea 2017-12-13 20:39:45 +02:00
parent 814d0c260b
commit b0c27562f4
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public class SecondLevelCacheTest extends BaseEntityManagerFunctionalTestCase {
options.put( AvailableSettings.CACHE_REGION_FACTORY, EhCacheRegionFactory.class.getName() );
options.put( AvailableSettings.USE_QUERY_CACHE, Boolean.TRUE.toString() );
options.put( AvailableSettings.GENERATE_STATISTICS, Boolean.TRUE.toString() );
options.put( AvailableSettings.CACHE_REGION_PREFIX, "" );
//options.put( AvailableSettings.CACHE_REGION_PREFIX, "" );
}
@Test

View File

@ -386,7 +386,7 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
integrator.disintegrate( this, serviceRegistry );
integratorObserver.integrators.remove( integrator );
}
serviceRegistry.destroy();
close();
throw e;
}
}