From b4122f6a9fb0e4009b759664b10b3d7fbbf10e09 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Fri, 4 Jan 2013 13:35:56 -0500 Subject: [PATCH] HHH-6643 Corrected intermittent test failure --- .../java/org/hibernate/test/criteria/CriteriaQueryTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }