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@437 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -471,11 +471,15 @@ public class DruidDataSourceUIManager extends JFrame {
|
||||
dataSource.setTestWhileIdle(Boolean.parseBoolean(txtTestWhileIdle.getText().trim()));
|
||||
dataSource.setTestOnBorrow(Boolean.parseBoolean(txtTestOnBorrow.getText().trim()));
|
||||
|
||||
Connection conn = dataSource.getConnection();
|
||||
connectCount.incrementAndGet();
|
||||
conn.close();
|
||||
closeCount.incrementAndGet();
|
||||
|
||||
try {
|
||||
Connection conn = dataSource.getConnection();
|
||||
connectCount.incrementAndGet();
|
||||
conn.close();
|
||||
closeCount.incrementAndGet();
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
executor = Executors.newCachedThreadPool();
|
||||
|
||||
txtDriverClass.setText(dataSource.getDriverClassName());
|
||||
|
||||
Reference in New Issue
Block a user