提交 0ce1caa0 编写于 作者: J jgish

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
上级 d968f0da
...@@ -93,7 +93,7 @@ public class TestLibrary { ...@@ -93,7 +93,7 @@ public class TestLibrary {
public final static int INHERITEDCHANNELNOTSERVERSOCKET_ACTIVATION_PORT = 64003; public final static int INHERITEDCHANNELNOTSERVERSOCKET_ACTIVATION_PORT = 64003;
public final static int INHERITEDCHANNELNOTSERVERSOCKET_REGISTRY_PORT = 64004; public final static int INHERITEDCHANNELNOTSERVERSOCKET_REGISTRY_PORT = 64004;
public final static int READTEST_REGISTRY_PORT = 64005; 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) { static void mesg(Object mesg) {
System.err.println("TEST_LIBRARY: " + mesg.toString()); System.err.println("TEST_LIBRARY: " + mesg.toString());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册