accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/3] git commit: ACCUMULO-2503 Fix timezone-related failures in ShellTest
Date Tue, 25 Mar 2014 23:08:08 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6.0-SNAPSHOT fa49e8041 -> ce38eeadc
  refs/heads/master 111b56dee -> eb72c5ba0


ACCUMULO-2503 Fix timezone-related failures in ShellTest


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/ce38eead
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/ce38eead
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/ce38eead

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: ce38eeadc41782fd62a0d46e63cbad93f7c997f6
Parents: fa49e80
Author: Josh Elser <elserj@apache.org>
Authored: Tue Mar 25 16:07:22 2014 -0700
Committer: Josh Elser <elserj@apache.org>
Committed: Tue Mar 25 16:07:22 2014 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/accumulo/core/util/shell/ShellTest.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/ce38eead/core/src/test/java/org/apache/accumulo/core/util/shell/ShellTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/accumulo/core/util/shell/ShellTest.java b/core/src/test/java/org/apache/accumulo/core/util/shell/ShellTest.java
index 82d1f34..3d9b89e 100644
--- a/core/src/test/java/org/apache/accumulo/core/util/shell/ShellTest.java
+++ b/core/src/test/java/org/apache/accumulo/core/util/shell/ShellTest.java
@@ -27,6 +27,7 @@ import java.io.PrintWriter;
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
 import java.util.Date;
+import java.util.TimeZone;
 
 import jline.console.ConsoleReader;
 
@@ -103,6 +104,7 @@ public class ShellTest {
 
   @Before
   public void setup() throws IOException {
+    TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
     Shell.log.setLevel(Level.OFF);
     output = new TestOutputStream();
     input = new StringInputStream();


Mime
View raw message