提交 988d54e4 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Increase timeout in TestLob.testRemovedAfterTimeout() for Travis

上级 b26bed64
...@@ -174,7 +174,7 @@ public class TestLob extends TestDb { ...@@ -174,7 +174,7 @@ public class TestLob extends TestDb {
return; return;
} }
deleteDb("lob"); deleteDb("lob");
final String url = getURL("lob;lob_timeout=50", true); final String url = getURL("lob;lob_timeout=200", true);
Connection conn = getConnection(url); Connection conn = getConnection(url);
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("create table test(id int primary key, data clob)"); stat.execute("create table test(id int primary key, data clob)");
...@@ -196,7 +196,7 @@ public class TestLob extends TestDb { ...@@ -196,7 +196,7 @@ public class TestLob extends TestDb {
stat.execute("delete from test"); stat.execute("delete from test");
c1.getSubString(1, 3); c1.getSubString(1, 3);
// wait until it times out // wait until it times out
Thread.sleep(100); Thread.sleep(250);
// start a new transaction, to be sure // start a new transaction, to be sure
stat.execute("delete from test"); stat.execute("delete from test");
assertThrows(SQLException.class, c1).getSubString(1, 3); assertThrows(SQLException.class, c1).getSubString(1, 3);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论