Skip to content

Commit ea238b4

Browse files
committed
HHH-9312 - Database connection leak with JTA transaction tracking and background thread not releasing database connection
1 parent 9e1afba commit ea238b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/transaction/TransactionJoiningTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ public void run() {
223223
em.createQuery( "from Book" ).getResultList();
224224
}
225225
catch ( PersistenceException e ) {
226-
caught = e.getCause().getClass().equals( GenericJDBCException.class );
226+
// slightly different expectation here now because of HHH-9312
227+
caught = true;
227228
}
228229
assertTrue( caught );
229230

0 commit comments

Comments
 (0)