diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/lock/UpgradeLockTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/lock/UpgradeLockTest.java index f5a4955f5f..748058ed8c 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/lock/UpgradeLockTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/lock/UpgradeLockTest.java @@ -82,8 +82,8 @@ public class UpgradeLockTest extends BaseEntityManagerFunctionalTestCase { } finally { em2.getTransaction().commit(); - latch.countDown(); // signal that tx2 is committed em2.close(); + latch.countDown(); // signal that tx2 is committed } } } );