Description
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.
[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)
If we add 5 days and 1 hour, I think this test should work correctly no matter what time zone it is run in.
Attachments
Issue Links
- links to