HHH-9312 - Database connection leak with JTA transaction tracking and background thread not releasing database connection

This commit is contained in:
Steve Ebersole 2014-08-04 14:55:52 -05:00
parent 9e1afbaf49
commit ea238b4c4f
1 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,8 @@ public class TransactionJoiningTest extends BaseEntityManagerFunctionalTestCase
em.createQuery( "from Book" ).getResultList();
}
catch ( PersistenceException e ) {
caught = e.getCause().getClass().equals( GenericJDBCException.class );
// slightly different expectation here now because of HHH-9312
caught = true;
}
assertTrue( caught );