diff --git a/hibernate-core/src/test/java/org/hibernate/test/criteria/CriteriaQueryTest.java b/hibernate-core/src/test/java/org/hibernate/test/criteria/CriteriaQueryTest.java index d20158d130..3cdfd2fc89 100755 --- a/hibernate-core/src/test/java/org/hibernate/test/criteria/CriteriaQueryTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/criteria/CriteriaQueryTest.java @@ -2043,8 +2043,8 @@ public class CriteriaQueryTest extends BaseCoreFunctionalTestCase { assertEquals( students.size(), 1 ); assertEquals( students.get( 0 ).getStudentNumber(), 1 ); - t.commit(); - session.close(); + t.rollback(); + s.close(); } }