Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22070

(7.4.z) HHH-14697 TimePropertyTest fails on MySQL 8.0 with a ComparisonFailure

    XMLWordPrintable

Details

    Description

      This is a clone of - https://hibernate.atlassian.net/browse/HHH-14697

      Running org.hibernate.test.temporal.TimePropertyTest.testTimeAsDate from Hibernate ORM test suite of version 5.3.20 on MySQL 8.0 database results in a ComparisonFailure:

      junit.framework.ComparisonFailure: expected:<08:55:5[1]> but was:<08:55:5[2]>
      	at junit.framework.Assert.assertEquals(Assert.java:100)
      	at junit.framework.Assert.assertEquals(Assert.java:107)
      	at org.hibernate.test.temporal.TimePropertyTest.testTimeAsDate(TimePropertyTest.java:59)
      

      Note: From my tiny experience with DBs I would say it could possibly be caused by rounding milliseconds value. The issue is not present in the latest ORM version (5.5.0), it could have been fixed by this line.

      Given that, I'm filing this JIRA as a known issue for QE Hibernate ORM 5.3.20 testing.

      Attachments

        Issue Links

          Activity

            People

              rchakrab Ranabir Chakraborty
              szhantem Sultan Zhantemirov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: