提交 f4e5ce65 authored 作者: Noel Grandin's avatar Noel Grandin

cleanup

......@@ -668,7 +668,7 @@ public class TestMVStore extends TestBase {
}
long diff = System.currentTimeMillis() - time;
if (diff > 1000) {
fail();
fail("diff=" + diff);
}
sleep(10);
}
......
......@@ -308,12 +308,7 @@ public class TestCrashAPI extends TestBase implements Runnable {
break;
}
try {
long start = System.currentTimeMillis();
conn = getConnection(seed, false);
long connectTime = System.currentTimeMillis() - start;
if (connectTime > 2000) {
System.out.println("??? connected2 in " + connectTime);
}
} catch (Throwable t) {
printIfBad(seed, -i, -1, t);
}
......@@ -407,6 +402,8 @@ if (connectTime > 2000) {
// do nothing
} else if (t.getClass().getName().contains("SQLClientInfoException")) {
// do nothing
} else if (t instanceof UnsupportedOperationException) {
// do nothing - new Java8/9 stuff
} else if (t instanceof SQLException) {
SQLException s = (SQLException) t;
int errorCode = s.getErrorCode();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论