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

cleanup

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