You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2021/03/16 21:26:30 UTC
[hbase] branch branch-2.3 updated: HBASE-25668
TestCurrentHourProvider fails 100% in branch-2.3 Debug...
This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new 74a597f HBASE-25668 TestCurrentHourProvider fails 100% in branch-2.3 Debug...
74a597f is described below
commit 74a597fcfff5555a00907cbc04753b9f318ab659
Author: stack <st...@apache.org>
AuthorDate: Tue Mar 16 14:24:10 2021 -0700
HBASE-25668 TestCurrentHourProvider fails 100% in branch-2.3
Debug...
---
.../hbase/regionserver/compactions/TestCurrentHourProvider.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/compactions/TestCurrentHourProvider.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/compactions/TestCurrentHourProvider.java
index 6df6b9b..f7141e7 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/compactions/TestCurrentHourProvider.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/compactions/TestCurrentHourProvider.java
@@ -1,4 +1,4 @@
-/**
+/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -18,7 +18,6 @@
package org.apache.hadoop.hbase.regionserver.compactions;
import static org.junit.Assert.assertEquals;
-
import java.util.Date;
import java.util.TimeZone;
import org.apache.hadoop.hbase.HBaseClassTestRule;
@@ -63,7 +62,7 @@ public class TestCurrentHourProvider {
CurrentHourProvider.getCurrentHour() - 2 :
CurrentHourProvider.getCurrentHour() - 1;
}
- assertEquals(11, hour11);
+ assertEquals("Timezone=" + timezone, 11, hour11);
// set a time represent hour 15
long deltaFor15 = TimeZone.getDefault().getRawOffset() - 28800000;
@@ -76,7 +75,7 @@ public class TestCurrentHourProvider {
CurrentHourProvider.getCurrentHour() - 2 :
CurrentHourProvider.getCurrentHour() - 1;
}
- assertEquals(15, hour15);
+ assertEquals("Timezone=" + timezone, 15, hour15);
}
}
}