You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2019/02/14 17:01:29 UTC

[geode] branch develop updated: GEODE-6405: Restore enableClockStats to false in CachePerfStatsTest

This is an automated email from the ASF dual-hosted git repository.

klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 908688c  GEODE-6405: Restore enableClockStats to false in CachePerfStatsTest
908688c is described below

commit 908688c32813b76db969f5bf2aec8d23ed6744fe
Author: Kirk Lund <kl...@apache.org>
AuthorDate: Wed Feb 13 16:59:36 2019 -0800

    GEODE-6405: Restore enableClockStats to false in CachePerfStatsTest
---
 .../java/org/apache/geode/internal/cache/CachePerfStatsTest.java    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/geode-core/src/test/java/org/apache/geode/internal/cache/CachePerfStatsTest.java b/geode-core/src/test/java/org/apache/geode/internal/cache/CachePerfStatsTest.java
index 11f6677..290b4db 100644
--- a/geode-core/src/test/java/org/apache/geode/internal/cache/CachePerfStatsTest.java
+++ b/geode-core/src/test/java/org/apache/geode/internal/cache/CachePerfStatsTest.java
@@ -56,6 +56,7 @@ import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -96,6 +97,11 @@ public class CachePerfStatsTest {
     cachePerfStats = new CachePerfStats(statisticsFactory, TEXT_ID, clock);
   }
 
+  @After
+  public void tearDown() {
+    CachePerfStats.enableClockStats = false;
+  }
+
   @Test
   public void getPutsDelegatesToStatistics() {
     statistics.incLong(putsId, Integer.MAX_VALUE);