Skip to content

Commit d93b2bf

Browse files
committed
HHH-7725 - fixing failing test that not clean up statistic before using it
1 parent a096770 commit d93b2bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hibernate-core/src/test/java/org/hibernate/test/annotations/query/QueryAndSQLTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public void testSQLQueryWithManyToOne() {
242242
tx = s.beginTransaction();
243243
Statistics stats = sessionFactory().getStatistics();
244244
stats.setStatisticsEnabled( true );
245+
stats.clear();
245246
Query q = s.getNamedQuery( "night&areaCached" );
246247
q.setCacheable( true );
247248
List result = q.list();

0 commit comments

Comments
 (0)