You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2018/07/05 14:01:01 UTC
[karaf] branch master updated: [KARAF-5804] Fix FastDateFormatTest
on EDT (jdk 1.8.0_151)
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/master by this push:
new 10b20ff [KARAF-5804] Fix FastDateFormatTest on EDT (jdk 1.8.0_151)
new e88300f [KARAF-5804] This closes #539
10b20ff is described below
commit 10b20ffb8c93cb3a12d86c36370da59b815d9762
Author: Tom Cunningham <tc...@redhat.com>
AuthorDate: Tue Jul 3 11:05:05 2018 -0400
[KARAF-5804] Fix FastDateFormatTest on EDT (jdk 1.8.0_151)
---
audit/src/test/java/org/apache/karaf/audit/util/FastDateFormatTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/audit/src/test/java/org/apache/karaf/audit/util/FastDateFormatTest.java b/audit/src/test/java/org/apache/karaf/audit/util/FastDateFormatTest.java
index aea8594..45fb64c 100644
--- a/audit/src/test/java/org/apache/karaf/audit/util/FastDateFormatTest.java
+++ b/audit/src/test/java/org/apache/karaf/audit/util/FastDateFormatTest.java
@@ -35,7 +35,7 @@ public class FastDateFormatTest {
assertEquals("Nov 5", cal.getDate(time, FastDateFormat.MMM_D2));
assertEquals("2017-11-05", cal.getDate(time, FastDateFormat.YYYY_MM_DD));
- time += TimeUnit.DAYS.toMillis(5);
+ time += TimeUnit.DAYS.toMillis(5) + TimeUnit.HOURS.toMillis(1);
assertEquals("Nov 10", cal.getDate(time, FastDateFormat.MMM_D2));
assertEquals("2017-11-10", cal.getDate(time, FastDateFormat.YYYY_MM_DD));
}