geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jensde...@apache.org
Subject [52/62] [abbrv] incubator-geode git commit: GEODE-909: fix port issue in MemoryThresholdsOffHeapDUnitTest
Date Thu, 11 Feb 2016 15:27:16 GMT
GEODE-909: fix port issue in MemoryThresholdsOffHeapDUnitTest

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


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

Branch: refs/heads/feature/GEODE-17
Commit: 8db793d9dc55eb73022980deda2626e04c83868c
Parents: d232e25
Author: Sai Boorlagadda <sboorlagadda@pivotal.io>
Authored: Mon Feb 8 14:29:51 2016 -0800
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Tue Feb 9 10:55:33 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/8db793d9/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 4a205f3..5c65b1a 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
@@ -245,14 +245,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 = "offHeapDisabledThresholds";
 
-    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, 0f,
+    startCacheServer(server2, 0, 0f, 0f,
         regionName, false/*createPR*/, false/*notifyBySubscription*/, 0);
 
     registerTestMemoryThresholdListener(server1);


Mime
View raw message