Skip to content

Commit 9933e1f

Browse files
committed
disable assertions on Informix
1 parent b0936fb commit 9933e1f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/constraint/ConstraintInterpretationTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class ConstraintInterpretationTest {
5656
}
5757
catch (ConstraintViolationException cve) {
5858
assertEquals( ConstraintViolationException.ConstraintKind.NOT_NULL, cve.getKind() );
59-
if ( !(scope.getDialect() instanceof DB2Dialect) ) {
59+
if ( !(scope.getDialect() instanceof DB2Dialect) && !(scope.getDialect() instanceof InformixDialect) ) {
6060
assertTrue( cve.getConstraintName().toLowerCase().endsWith( "id" ) );
6161
}
6262
}
@@ -111,7 +111,9 @@ public class ConstraintInterpretationTest {
111111
}
112112
catch (ConstraintViolationException cve) {
113113
assertEquals( ConstraintViolationException.ConstraintKind.CHECK, cve.getKind() );
114-
assertTrue( cve.getConstraintName().toLowerCase().endsWith( "namecheck" ) );
114+
if ( !(scope.getDialect() instanceof InformixDialect) ) {
115+
assertTrue( cve.getConstraintName().toLowerCase().endsWith( "namecheck" ) );
116+
}
115117
}
116118
} );
117119
}

0 commit comments

Comments
 (0)