HHH-8930 Make the rebuildSessionFactory() method be more aggressive about closing

This commit is contained in:
Thomas Jones-Low 2014-01-22 12:07:24 -05:00 committed by Brett Meyer
parent 4656176ea9
commit 50d1be9e2d
1 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,10 @@ public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase {
}
try {
sessionFactory.close();
sessionFactory = null;
configuration = null;
serviceRegistry.destroy();
serviceRegistry = null;
}
catch (Exception ignore) {
}