提交 0c5e3ca6 authored 作者: Thomas Mueller's avatar Thomas Mueller

Changed test case for Ubuntu

上级 981d33c6
......@@ -136,7 +136,10 @@ public class TestOpenClose extends TestBase implements DatabaseEventListener {
conn.createStatement().execute("drop table employee if exists");
conn.createStatement().execute("create table employee(id int primary key, name varchar, salary int)");
conn.close();
int len = getSize(200, 1000);
// previously using getSize(200, 1000);
// but for Ubuntu, the default ulimit is 1024,
// which breaks the test
int len = getSize(10, 50);
Thread[] threads = new Thread[len];
for (int i = 0; i < len; i++) {
threads[i] = new Thread() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论