You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2021/05/05 16:41:39 UTC

[iotdb] branch test_container updated: refactor testcontainer

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch test_container
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/test_container by this push:
     new b6f8b94  refactor testcontainer
b6f8b94 is described below

commit b6f8b9477728625c6eb69da782ee8c65462cf128
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Thu May 6 00:39:37 2021 +0800

    refactor testcontainer
---
 testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterIT.java | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterIT.java b/testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterIT.java
index c1ee5a7..0497ae6 100644
--- a/testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterIT.java
+++ b/testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterIT.java
@@ -27,9 +27,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.testcontainers.containers.DockerComposeContainer;
 
-import java.sql.Connection;
 import java.sql.DriverManager;
-import java.sql.Statement;
 
 // do not add tests here.
 // add tests into Cases.java instead.
@@ -37,11 +35,6 @@ public abstract class ClusterIT extends Cases {
 
   private static Logger logger = LoggerFactory.getLogger(ClusterIT.class);
 
-  private Statement writeStatement;
-  private Connection writeConnection;
-  private Statement readStatement;
-  private Connection readConnection;
-
   // "root.sg1" is a special storage for testing whether the read and write operations can be run
   // correctly if the data is not on the connected node.
   public String defaultSG = "root.sg1";