changeset 6107:e2fb111a4be0

8006534: CLONE - TestLibrary.getUnusedRandomPort() fails intermittently-doesn't retry enough times Summary: Increase number of retries to twice the number of ports in the reserved range Reviewed-by: mduigou
author jgish
date Thu, 17 Jan 2013 15:09:46 -0500
parents fedc35c8b46b
children 4c0d2f6dd20c
files test/java/rmi/testlibrary/TestLibrary.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/rmi/testlibrary/TestLibrary.java	Wed Dec 05 21:08:14 2012 -0800
+++ b/test/java/rmi/testlibrary/TestLibrary.java	Thu Jan 17 15:09:46 2013 -0500
@@ -93,7 +93,7 @@
     public final static int INHERITEDCHANNELNOTSERVERSOCKET_ACTIVATION_PORT = 64003;
     public final static int INHERITEDCHANNELNOTSERVERSOCKET_REGISTRY_PORT = 64004;
     public final static int READTEST_REGISTRY_PORT = 64005;
-    private final static int MAX_SERVER_SOCKET_TRIES = 10;
+    private final static int MAX_SERVER_SOCKET_TRIES = 2*(FIXED_PORT_MAX-FIXED_PORT_MIN+1);
 
     static void mesg(Object mesg) {
         System.err.println("TEST_LIBRARY: " + mesg.toString());