karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [karaf] branch master updated: [KARAF-5804] Fix FastDateFormatTest on EDT (jdk 1.8.0_151)
Date Thu, 05 Jul 2018 14:01:01 GMT
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 <tcunning@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));
     }


Mime
View raw message