mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase & remove unused code
This commit is contained in:
@@ -17,9 +17,10 @@ package com.alibaba.druid.bvt.pool;
|
||||
|
||||
import java.sql.Connection;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.junit.Assert;
|
||||
|
||||
import com.alibaba.druid.pool.DruidDataSource;
|
||||
import com.alibaba.druid.stat.DruidDataSourceStatManager;
|
||||
|
||||
@@ -46,7 +47,7 @@ public class TestActiveTrace extends TestCase {
|
||||
}
|
||||
|
||||
public void test_activeTrace() throws Exception {
|
||||
for (int i = 0; i < 1000 * 1000; ++i) {
|
||||
for (int i = 0; i < 1000 * 10; ++i) {
|
||||
dataSource.shrink();
|
||||
|
||||
Connection conn = dataSource.getConnection();
|
||||
|
||||
Reference in New Issue
Block a user