change
This commit is contained in:
parent
89ab10f9ab
commit
b5eebd099c
|
@ -36,6 +36,7 @@
|
|||
<maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version>
|
||||
<commons-logging.version>1.1.2</commons-logging.version>
|
||||
<commons-lang3.version>3.5</commons-lang3.version>
|
||||
<maven.test.jvmargs></maven.test.jvmargs>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
@ -122,6 +123,8 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.12.4</version>
|
||||
<configuration>
|
||||
<forkMode>pretest</forkMode>
|
||||
<argLine>${maven.test.jvmargs}</argLine>
|
||||
<includes>
|
||||
<include>**/*Test.java</include>
|
||||
</includes>
|
||||
|
|
|
@ -13,9 +13,8 @@ import java.util.stream.IntStream;
|
|||
public class TaosInfoMonitorTest {
|
||||
|
||||
@Test
|
||||
public void testCreateTooManyConnection() throws ClassNotFoundException, SQLException, InterruptedException {
|
||||
public void testCreateTooManyConnection() throws ClassNotFoundException {
|
||||
Class.forName("com.taosdata.jdbc.TSDBDriver");
|
||||
int conCnt = 0;
|
||||
final String url = "jdbc:TAOS://127.0.0.1:6030/?user=root&password=taosdata";
|
||||
|
||||
List<Connection> connectionList = IntStream.range(0, 100).mapToObj(i -> {
|
||||
|
@ -27,6 +26,7 @@ public class TaosInfoMonitorTest {
|
|||
}
|
||||
return null;
|
||||
}).collect(Collectors.toList());
|
||||
|
||||
connectionList.stream().forEach(conn -> {
|
||||
try {
|
||||
conn.close();
|
||||
|
|
Loading…
Reference in New Issue