HHH-7725 - fixing failing test that not clean up statistic before using it

This commit is contained in:
Strong Liu 2012-11-01 14:05:27 +08:00
parent a0967702e4
commit d93b2bf9ab
1 changed files with 1 additions and 0 deletions

View File

@ -242,6 +242,7 @@ public class QueryAndSQLTest extends BaseCoreFunctionalTestCase {
tx = s.beginTransaction();
Statistics stats = sessionFactory().getStatistics();
stats.setStatisticsEnabled( true );
stats.clear();
Query q = s.getNamedQuery( "night&areaCached" );
q.setCacheable( true );
List result = q.list();