geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstew...@apache.org
Subject geode git commit: GEODE-2692: Fix tests relying on file creation time
Date Mon, 20 Mar 2017 16:53:05 GMT
Repository: geode
Updated Branches:
  refs/heads/develop 1036259ec -> 84a1a9bf7


GEODE-2692: Fix tests relying on file creation time


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

Branch: refs/heads/develop
Commit: 84a1a9bf7458df61461f07b2dd88a3eb81de94d2
Parents: 1036259
Author: Jared Stewart <jstewart@pivotal.io>
Authored: Mon Mar 20 09:47:20 2017 -0700
Committer: Jared Stewart <jstewart@pivotal.io>
Committed: Mon Mar 20 09:47:20 2017 -0700

----------------------------------------------------------------------
 .../internal/cli/commands/ExportLogsStatsDUnitTest.java        | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/84a1a9bf/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/ExportLogsStatsDUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/ExportLogsStatsDUnitTest.java
b/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/ExportLogsStatsDUnitTest.java
index de2ea64..5a4d274 100644
--- a/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/ExportLogsStatsDUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/ExportLogsStatsDUnitTest.java
@@ -126,14 +126,12 @@ public class ExportLogsStatsDUnitTest {
   public void startAndEndDateCanExcludeLogs() throws Exception {
     connectIfNeeded();
     ZonedDateTime now = LocalDateTime.now().atZone(ZoneId.systemDefault());
-    ZonedDateTime yesterday = now.minusDays(1);
-    ZonedDateTime twoDaysAgo = now.minusDays(2);
+    ZonedDateTime tomorrow = now.plusDays(1);
 
     DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(ONLY_DATE_FORMAT);
 
     CommandStringBuilder commandStringBuilder = new CommandStringBuilder("export logs");
-    commandStringBuilder.addOption("start-time", dateTimeFormatter.format(twoDaysAgo));
-    commandStringBuilder.addOption("end-time", dateTimeFormatter.format(yesterday));
+    commandStringBuilder.addOption("start-time", dateTimeFormatter.format(tomorrow));
     commandStringBuilder.addOption("log-level", "debug");
 
     String output = connector.execute(commandStringBuilder.toString());


Mime
View raw message