From 6a0a6d756295c517fb9cb1ee1505c3cb9cfd4784 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Fri, 12 May 2017 14:24:18 -0700 Subject: [PATCH] HHH-11740 : Skip test for H2 --- .../org/hibernate/test/unionsubclass/UnionSubclassTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/test/unionsubclass/UnionSubclassTest.java b/hibernate-core/src/test/java/org/hibernate/test/unionsubclass/UnionSubclassTest.java index 362cecaadd..fff54201cc 100755 --- a/hibernate-core/src/test/java/org/hibernate/test/unionsubclass/UnionSubclassTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/unionsubclass/UnionSubclassTest.java @@ -16,7 +16,9 @@ import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.criterion.Order; +import org.hibernate.dialect.H2Dialect; +import org.hibernate.testing.SkipForDialect; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase; @@ -407,6 +409,10 @@ public class UnionSubclassTest extends BaseCoreFunctionalTestCase { @Test @TestForIssue( jiraKey = "HHH-11740" ) + @SkipForDialect( + value = H2Dialect.class, + comment = "skip dialects that throw PessimisticLockException" + ) public void testBulkOperationsInTwoConcurrentSessions() throws Exception { Session s = openSession(); s.getTransaction().begin();