提交 b418e040 编写于 作者: R robm

8046768: com/sun/jndi/ldap/LdapTimeoutTest.java fails intermittently

Reviewed-by: vinnie
上级 2f608285
......@@ -83,6 +83,10 @@ abstract class LdapTest implements Callable {
throw new RuntimeException("Test failed");
}
public void fail(Exception e) {
throw new RuntimeException("Test failed", e);
}
boolean shutItDown(InitialContext ctx) {
try {
if (ctx != null) ctx.close();
......@@ -231,7 +235,7 @@ class DeadServerTimeoutSSLTest extends DeadServerTest {
// SocketTimeoutException
pass();
} else {
fail();
fail(e);
}
}
}
......@@ -268,7 +272,8 @@ class ReadServerTimeoutTest extends ReadServerTest {
}
public void handleNamingException(NamingException e, long start, long end) {
if (NANOSECONDS.toMillis(end - start) < 2_900) {
System.out.println("ReadServerTimeoutTest: end-start=" + NANOSECONDS.toMillis(end - start));
if (NANOSECONDS.toMillis(end - start) < 2_500) {
fail();
} else {
pass();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册