Skip to content

Commit 04b08f0

Browse files
committed
disable test on Informix due to some timestamp precision problem
1 parent a39bf05 commit 04b08f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedByDbOnForcedIncrementTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
import jakarta.persistence.Id;
1010
import jakarta.persistence.Version;
1111
import org.hibernate.annotations.UpdateTimestamp;
12+
import org.hibernate.community.dialect.InformixDialect;
1213
import org.hibernate.testing.orm.junit.EntityManagerFactoryScope;
1314
import org.hibernate.testing.orm.junit.Jpa;
15+
import org.hibernate.testing.orm.junit.SkipForDialect;
1416
import org.junit.jupiter.api.Test;
1517

1618
import java.time.LocalDateTime;
@@ -20,6 +22,8 @@
2022
import static org.junit.jupiter.api.Assertions.assertTrue;
2123

2224
@Jpa(annotatedClasses = GeneratedByDbOnForcedIncrementTest.WithUpdateTimestamp.class)
25+
@SkipForDialect(dialectClass = InformixDialect.class,
26+
reason = "JDBC driver returns timestamp with seconds precision")
2327
class GeneratedByDbOnForcedIncrementTest {
2428
@Test void test(EntityManagerFactoryScope scope) throws InterruptedException {
2529
var persisted = scope.fromTransaction( em -> {

0 commit comments

Comments
 (0)