提交 dc696b40 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Execute TestSessionLocks only with config.multiThreaded

上级 e139ecde
......@@ -27,6 +27,9 @@ public class TestSessionsLocks extends TestBase {
@Override
public void test() throws Exception {
if (!config.multiThreaded) {
return;
}
testCancelStatement();
if (!config.mvcc) {
testLocks();
......@@ -36,7 +39,7 @@ public class TestSessionsLocks extends TestBase {
private void testLocks() throws SQLException {
deleteDb("sessionsLocks");
Connection conn = getConnection("sessionsLocks;MULTI_THREADED=1");
Connection conn = getConnection("sessionsLocks");
Statement stat = conn.createStatement();
ResultSet rs;
rs = stat.executeQuery("select * from information_schema.locks " +
......@@ -82,7 +85,7 @@ public class TestSessionsLocks extends TestBase {
private void testCancelStatement() throws Exception {
deleteDb("sessionsLocks");
Connection conn = getConnection("sessionsLocks;MULTI_THREADED=1");
Connection conn = getConnection("sessionsLocks");
Statement stat = conn.createStatement();
ResultSet rs;
rs = stat.executeQuery("select * from information_schema.sessions " +
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论