geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject incubator-geode git commit: GEODE-557: change test to use port zero
Date Wed, 10 Feb 2016 00:06:14 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop 8db793d9d -> 466432538


GEODE-557: change test to use port zero

* Set cacheserver port to 'zero' in-order for system to pick-up random port instead of using
AvailablePortHelper.

This closes #92


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

Branch: refs/heads/develop
Commit: 466432538391a22942ab9f464354f6365b598a77
Parents: 8db793d
Author: Sai Boorlagadda <sboorlagadda@pivotal.io>
Authored: Tue Feb 9 09:58:29 2016 -0800
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Tue Feb 9 16:05:13 2016 -0800

----------------------------------------------------------------------
 .../cache/management/MemoryThresholdsOffHeapDUnitTest.java   | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/46643253/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
index 5c65b1a..532a239 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsOffHeapDUnitTest.java
@@ -436,14 +436,12 @@ public class MemoryThresholdsOffHeapDUnitTest extends ClientServerTestCase
{
     final VM server1 = host.getVM(0);
     final VM server2 = host.getVM(1);
 
-    final int[] ports = AvailablePortHelper.getRandomAvailableTCPPorts(2);
-    final int port1 = ports[0];
-    final int port2 = ports[1];
     final String regionName = "offHeapDRRemotePutRejection";
 
-    startCacheServer(server1, port1, 0f, 0f,
+    //set port to 0 in-order for system to pickup a random port.
+    startCacheServer(server1, 0, 0f, 0f,
         regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
-    startCacheServer(server2, port2, 0f, 90f,
+    startCacheServer(server2, 0, 0f, 90f,
         regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
 
     registerTestMemoryThresholdListener(server1);


Mime
View raw message