karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-5804) FastDateFormatTest fails on EDT (jdk 1.8.0_151)
Date Thu, 05 Jul 2018 14:05:00 GMT

     [ https://issues.apache.org/jira/browse/KARAF-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré resolved KARAF-5804.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s: 4.2.1

> FastDateFormatTest fails on EDT (jdk 1.8.0_151) 
> ------------------------------------------------
>
>                 Key: KARAF-5804
>                 URL: https://issues.apache.org/jira/browse/KARAF-5804
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-test
>            Reporter: Tom Cunningham
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.2.1
>
>
> FastDateFormatTest fails on JDK 1.8 / EDT.    It looks like the test case tries to
add 5 days to November 5th 2017, but does not account for the fact that November 5, 2017 was
a border date for daylight savings time in the US ([https://www.timeanddate.com/time/change/usa)]. 
  I receive "Nov 9" as a result of the add, I think because of the daylight savings time
hour.
> {code:java}
> [INFO] Running org.apache.karaf.audit.util.FastDateFormatTest
> [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.001 s <<<
FAILURE! - in org.apache.karaf.audit.util.FastDateFormatTest
> [ERROR] test(org.apache.karaf.audit.util.FastDateFormatTest)  Time elapsed: 0.001 s 
<<< FAILURE!
> org.junit.ComparisonFailure: expected:<Nov [10]> but was:<Nov [ 9]>
> at org.apache.karaf.audit.util.FastDateFormatTest.test(FastDateFormatTest.java:39)
>  {code}
> If we add 5 days and 1 hour, I think this test should work correctly no matter what time
zone it is run in.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message