修正测试

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@325 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-30 05:39:48 +00:00
parent 58a95cdfee
commit bb581829d4
@@ -85,7 +85,7 @@ public class Case0 extends TestCase {
dataSource.setPoolPreparedStatements(true);
dataSource.setUsername(user);
dataSource.setPassword(password);
dataSource.setValidationQuery("SELECT 1");
dataSource.setValidationQuery(validationQuery);
dataSource.setTestOnBorrow(true);
for (int i = 0; i < LOOP_COUNT; ++i) {
@@ -107,7 +107,7 @@ public class Case0 extends TestCase {
// dataSource.setMaxOpenPreparedStatements(100);
dataSource.setUsername(user);
dataSource.setPassword(password);
dataSource.setConnectionTestStatement("SELECT 1");
dataSource.setConnectionTestStatement(validationQuery);
dataSource.setPartitionCount(1);
for (int i = 0; i < LOOP_COUNT; ++i) {