mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
修正测试
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@325 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user