Skip to content

Commit

Permalink
HHH-13570 : Test failures due to Sybase not supporting UPDATE stateme…
Browse files Browse the repository at this point in the history
…nt with WITH(NOWAIT)
  • Loading branch information
gbadner committed Aug 14, 2019
1 parent 9988d67 commit ce03ef9
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -19,6 +19,8 @@
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.engine.spi.SharedSessionContractImplementor;

import org.hibernate.testing.DialectChecks;
import org.hibernate.testing.RequiresDialectFeature;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
Expand Down Expand Up @@ -60,6 +62,7 @@ public void prepareTest() throws Exception {
protected boolean isCleanupTestDataRequired(){return true;}

@Test
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
@SuppressWarnings( {"deprecation"})
public void testLoading() {
// open a session, begin a transaction and lock row
Expand All @@ -75,6 +78,7 @@ public void testLoading() {
}

@Test
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
public void testLegacyCriteria() {
// open a session, begin a transaction and lock row
doInHibernate( this::sessionFactory, session -> {
Expand All @@ -92,6 +96,7 @@ public void testLegacyCriteria() {
}

@Test
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
public void testLegacyCriteriaAliasSpecific() {
// open a session, begin a transaction and lock row
doInHibernate( this::sessionFactory, session -> {
Expand All @@ -108,6 +113,7 @@ public void testLegacyCriteriaAliasSpecific() {
}

@Test
@RequiresDialectFeature( value = DialectChecks.SupportsLockTimeouts.class )
public void testQuery() {
// open a session, begin a transaction and lock row
doInHibernate( this::sessionFactory, session -> {
Expand Down

0 comments on commit ce03ef9

Please sign in to comment.