You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/07/03 15:07:00 UTC
[jira] [Commented] (KARAF-5804) FastDateFormatTest fails on EDT
(jdk 1.8.0_151)
[ https://issues.apache.org/jira/browse/KARAF-5804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16531526#comment-16531526 ]
ASF GitHub Bot commented on KARAF-5804:
---------------------------------------
cunningt opened a new pull request #539: KARAF-5804 FastDateFormatTest fails on EDT (jdk 1.8.0_151)
URL: https://github.com/apache/karaf/pull/539
https://issues.apache.org/jira/browse/KARAF-5804
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
> 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
> Reporter: Tom Cunningham
> 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)