diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/transaction/TransactionJoiningTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/transaction/TransactionJoiningTest.java index 7c2f596694..6e0ad40272 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/transaction/TransactionJoiningTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/transaction/TransactionJoiningTest.java @@ -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 );