karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5804) FastDateFormatTest fails on EDT (jdk 1.8.0_151)
Date Thu, 05 Jul 2018 14:02:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533696#comment-16533696
] 

ASF subversion and git services commented on KARAF-5804:
--------------------------------------------------------

Commit 10b20ffb8c93cb3a12d86c36370da59b815d9762 in karaf's branch refs/heads/master from [~cunningt]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=10b20ff ]

[KARAF-5804] Fix FastDateFormatTest on EDT (jdk 1.8.0_151)


> 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
>
> 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