From a7f43eaad5c3fbaf2d2c8ac183972429a11c2310 Mon Sep 17 00:00:00 2001 From: Jim Gish Date: Thu, 17 Jan 2013 15:09:46 -0500 Subject: [PATCH] 8006534: CLONE - TestLibrary.getUnusedRandomPort() fails intermittently-doesn't retry enough times Increase number of retries to twice the number of ports in the reserved range Reviewed-by: mduigou --- jdk/test/java/rmi/testlibrary/TestLibrary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/test/java/rmi/testlibrary/TestLibrary.java b/jdk/test/java/rmi/testlibrary/TestLibrary.java index 07ed308355c..10b84c639b1 100644 --- a/jdk/test/java/rmi/testlibrary/TestLibrary.java +++ b/jdk/test/java/rmi/testlibrary/TestLibrary.java @@ -93,7 +93,7 @@ public class TestLibrary { 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());