From 158968660857531ffad6495bc7cbc93a1afafa3f Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Mon, 29 Nov 2021 12:38:59 +0100 Subject: [PATCH] Fix envers test failure with Sybase --- .../strategy/AbstractRevisionEndTimestampTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/strategy/AbstractRevisionEndTimestampTest.java b/hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/strategy/AbstractRevisionEndTimestampTest.java index 744b7fdd60..35009013f8 100644 --- a/hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/strategy/AbstractRevisionEndTimestampTest.java +++ b/hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/strategy/AbstractRevisionEndTimestampTest.java @@ -14,7 +14,7 @@ import java.util.List; import java.util.Map; import org.hibernate.dialect.Dialect; -import org.hibernate.dialect.SybaseASE15Dialect; +import org.hibernate.dialect.SybaseDialect; import org.hibernate.envers.configuration.EnversSettings; import org.hibernate.envers.enhanced.SequenceIdRevisionEntity; import org.hibernate.orm.test.envers.BaseEnversJPAFunctionalTestCase; @@ -58,7 +58,7 @@ public abstract class AbstractRevisionEndTimestampTest extends BaseEnversJPAFunc // revision end timestamp field as well. final Date timestamp = (Date) timestampParentClass; final Dialect dialect = getDialect(); - if ( dialect instanceof SybaseASE15Dialect) { + if ( dialect instanceof SybaseDialect ) { // Sybase DATETIME are accurate to 1/300 second on platforms that support that level of // granularity. assertEquals( timestamp.getTime() / 1000.0, revisionEnd.getTimestamp() / 1000.0, 1.0 / 300.0 );