提交 9c01059b authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 6b59387e
...@@ -99,11 +99,16 @@ public class TestSessionsLocks extends TestBase { ...@@ -99,11 +99,16 @@ public class TestSessionsLocks extends TestBase {
}; };
new Thread(runnable).start(); new Thread(runnable).start();
while (true) { while (true) {
Thread.sleep(1000); Thread.sleep(100);
rs = stat.executeQuery("CALL CANCEL_SESSION(" + otherId + ")"); rs = stat.executeQuery("CALL CANCEL_SESSION(" + otherId + ")");
rs.next(); rs.next();
if (rs.getBoolean(1)) { if (rs.getBoolean(1)) {
for (int i = 0; i < 20; i++) {
Thread.sleep(100); Thread.sleep(100);
if (done[0]) {
break;
}
}
check(done[0]); check(done[0]);
break; break;
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论