zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject zookeeper git commit: ZOOKEEPER-3074: Flaky test:org.apache.zookeeper.server.ServerStatsTest.testLatencyMetrics
Date Wed, 18 Jul 2018 13:49:42 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/branch-3.5 1e65b9f48 -> d6c1e3791


ZOOKEEPER-3074: Flaky test:org.apache.zookeeper.server.ServerStatsTest.testLatencyMetrics

more details in [ZOOKEEPER-3074](https://issues.apache.org/jira/browse/ZOOKEEPER-3074)

Author: maoling <maoling199210191@sina.com>

Reviewers: hanm@apache.org, andor@apache.org, nkalmar@cloudera.com

Closes #556 from maoling/ZOOKEEPER-3074

(cherry picked from commit 81b51554922d4cee5dde4a848a106f286f4c407b)
Signed-off-by: Andor Molnar <andor@apache.org>


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

Branch: refs/heads/branch-3.5
Commit: d6c1e3791c0d3cbef861bb9f2610f927b30a169f
Parents: 1e65b9f
Author: maoling <maoling199210191@sina.com>
Authored: Wed Jul 18 15:49:21 2018 +0200
Committer: Andor Molnar <andor@apache.org>
Committed: Wed Jul 18 15:49:37 2018 +0200

----------------------------------------------------------------------
 .../test/org/apache/zookeeper/server/ServerStatsTest.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/d6c1e379/src/java/test/org/apache/zookeeper/server/ServerStatsTest.java
----------------------------------------------------------------------
diff --git a/src/java/test/org/apache/zookeeper/server/ServerStatsTest.java b/src/java/test/org/apache/zookeeper/server/ServerStatsTest.java
index 3757b76..aa207d1 100644
--- a/src/java/test/org/apache/zookeeper/server/ServerStatsTest.java
+++ b/src/java/test/org/apache/zookeeper/server/ServerStatsTest.java
@@ -26,7 +26,7 @@ import org.junit.Test;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
-import static org.hamcrest.Matchers.greaterThanOrEqualTo;
+import static org.hamcrest.Matchers.lessThanOrEqualTo;
 
 public class ServerStatsTest extends ZKTestCase {
 
@@ -73,11 +73,11 @@ public class ServerStatsTest extends ZKTestCase {
 
         // Then ...
         assertThat("Max latency check", 2000L,
-                greaterThanOrEqualTo(serverStats.getMaxLatency()));
+                lessThanOrEqualTo(serverStats.getMaxLatency()));
         assertThat("Min latency check", 1000L,
-                greaterThanOrEqualTo(serverStats.getMinLatency()));
+                lessThanOrEqualTo(serverStats.getMinLatency()));
         assertThat("Avg latency check", 1500L,
-                greaterThanOrEqualTo(serverStats.getAvgLatency()));
+                lessThanOrEqualTo(serverStats.getAvgLatency()));
 
         // When reset...
         serverStats.resetLatency();


Mime
View raw message