You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bs...@apache.org on 2017/05/15 18:02:23 UTC

[3/4] geode git commit: GEODE-2853: Change of locator list request interval

GEODE-2853: Change of locator list request interval

Replace the manual cleanup of system properties with the Rule.

This closes #483


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

Branch: refs/heads/develop
Commit: 4b2609597c0ff3081d3032ef57f90e5367a3c6f5
Parents: 762666c
Author: masaki.yamakawa <ma...@ulsystems.co.jp>
Authored: Sat May 13 00:35:49 2017 +0900
Committer: Bruce Schuchardt <bs...@pivotal.io>
Committed: Mon May 15 11:05:56 2017 -0700

----------------------------------------------------------------------
 .../client/internal/AutoConnectionSourceImplJUnitTest.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/4b260959/geode-core/src/test/java/org/apache/geode/cache/client/internal/AutoConnectionSourceImplJUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/cache/client/internal/AutoConnectionSourceImplJUnitTest.java b/geode-core/src/test/java/org/apache/geode/cache/client/internal/AutoConnectionSourceImplJUnitTest.java
index 0213609..da3cbdb 100644
--- a/geode-core/src/test/java/org/apache/geode/cache/client/internal/AutoConnectionSourceImplJUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/cache/client/internal/AutoConnectionSourceImplJUnitTest.java
@@ -40,7 +40,9 @@ import org.apache.geode.test.junit.categories.ClientServerTest;
 import org.apache.geode.test.junit.categories.IntegrationTest;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Rule;
 import org.junit.Test;
+import org.junit.contrib.java.lang.system.RestoreSystemProperties;
 import org.junit.experimental.categories.Category;
 
 import java.io.IOException;
@@ -80,6 +82,9 @@ public class AutoConnectionSourceImplJUnitTest {
   private ScheduledExecutorService background;
   private PoolStats poolStats;
 
+  @Rule
+  public final RestoreSystemProperties restoreSystemProperties = new RestoreSystemProperties();
+
   @Before
   public void setUp() throws Exception {
     Properties props = new Properties();
@@ -110,7 +115,6 @@ public class AutoConnectionSourceImplJUnitTest {
 
   @After
   public void tearDown() {
-    System.clearProperty(DistributionConfig.GEMFIRE_PREFIX + "LOCATOR_UPDATE_INTERVAL");
     background.shutdownNow();
     try {
       cache.close();