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 2016/02/09 02:30:01 UTC

[08/50] [abbrv] incubator-geode git commit: Disable auto-reconnect in the unit test Locator

Disable auto-reconnect in the unit test Locator


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

Branch: refs/heads/feature/GEODE-268
Commit: 4f508622d51b8b903d4e0c3500e51fe9991572c0
Parents: a8263dd
Author: Bruce Schuchardt <bs...@pivotal.io>
Authored: Fri Feb 5 15:21:00 2016 -0800
Committer: Bruce Schuchardt <bs...@pivotal.io>
Committed: Fri Feb 5 15:21:55 2016 -0800

----------------------------------------------------------------------
 .../gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java  | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/4f508622/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java b/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
index 5e7fa0e..99548b3 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/test/dunit/standalone/DUnitLauncher.java
@@ -53,6 +53,7 @@ import batterytest.greplogs.ExpectedStrings;
 import batterytest.greplogs.LogConsumer;
 
 import com.gemstone.gemfire.distributed.Locator;
+import com.gemstone.gemfire.distributed.internal.DistributionConfig;
 import com.gemstone.gemfire.distributed.internal.membership.gms.membership.GMSJoinLeave;
 import com.gemstone.gemfire.internal.AvailablePortHelper;
 import com.gemstone.gemfire.internal.logging.LogService;
@@ -265,8 +266,11 @@ public class DUnitLauncher {
         p.setProperty("enable-cluster-configuration", "false");
         //Tell the locator it's the first in the system for
         //faster boot-up
-        
         System.setProperty(GMSJoinLeave.BYPASS_DISCOVERY_PROPERTY, "true");
+        // disable auto-reconnect - tests fly by so fast that it will never be
+        // able to do so successfully anyway
+        p.setProperty(DistributionConfig.DISABLE_AUTO_RECONNECT_NAME, "true");
+        
         try {
           Locator.startLocatorAndDS(locatorPort, locatorLogFile, p);
         } finally {