HHH-9312 - Database connection leak with JTA transaction tracking and background thread not releasing database connection
This commit is contained in:
parent
9e1afbaf49
commit
ea238b4c4f
|
@ -223,7 +223,8 @@ public class TransactionJoiningTest extends BaseEntityManagerFunctionalTestCase
|
||||||
em.createQuery( "from Book" ).getResultList();
|
em.createQuery( "from Book" ).getResultList();
|
||||||
}
|
}
|
||||||
catch ( PersistenceException e ) {
|
catch ( PersistenceException e ) {
|
||||||
caught = e.getCause().getClass().equals( GenericJDBCException.class );
|
// slightly different expectation here now because of HHH-9312
|
||||||
|
caught = true;
|
||||||
}
|
}
|
||||||
assertTrue( caught );
|
assertTrue( caught );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue