From 36d6760abf176b00e62d5b550687961c42d6665b Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Wed, 19 Jan 2022 15:42:14 +0100 Subject: [PATCH] Fix missing commit which was causing dangling connection/tx --- .../java/org/hibernate/orm/test/formulajoin/FormulaJoinTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/formulajoin/FormulaJoinTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/formulajoin/FormulaJoinTest.java index 7f7f1814b4..f0743838fb 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/formulajoin/FormulaJoinTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/formulajoin/FormulaJoinTest.java @@ -103,6 +103,7 @@ public class FormulaJoinTest extends BaseCoreFunctionalTestCase { tx = s.beginTransaction(); l = s.createQuery("from Detail d join fetch d.currentRoot.root m join fetch m.detail").list(); assertEquals( l.size(), 2 ); + tx.commit(); s = openSession(); tx = s.beginTransaction();