HHH-8930 Make the rebuildSessionFactory() method be more aggressive
about closing Conflicts: hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
This commit is contained in:
parent
af428a1273
commit
9fa9c734da
|
@ -401,7 +401,10 @@ public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sessionFactory.close();
|
sessionFactory.close();
|
||||||
|
sessionFactory = null;
|
||||||
|
configuration = null;
|
||||||
serviceRegistry.destroy();
|
serviceRegistry.destroy();
|
||||||
|
serviceRegistry = null;
|
||||||
|
|
||||||
serviceRegistry = buildServiceRegistry( configuration );
|
serviceRegistry = buildServiceRegistry( configuration );
|
||||||
if ( isMetadataUsed ) {
|
if ( isMetadataUsed ) {
|
||||||
|
|
Loading…
Reference in New Issue