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

dope pushed a commit to branch cluster
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/cluster by this push:
     new 8562d67  remove EnvironmentUtils in RouterTest
8562d67 is described below

commit 8562d67c83ca53498d638af671eda975c1058528
Author: MyXOF <[email protected]>
AuthorDate: Wed Apr 10 16:46:16 2019 +0800

    remove EnvironmentUtils in RouterTest
---
 .../java/org/apache/iotdb/cluster/utils/ClusterConfigureGenerator.java | 3 ---
 .../src/test/java/org/apache/iotdb/cluster/utils/hash/RouterTest.java  | 3 ---
 2 files changed, 6 deletions(-)

diff --git 
a/cluster/src/test/java/org/apache/iotdb/cluster/utils/ClusterConfigureGenerator.java
 
b/cluster/src/test/java/org/apache/iotdb/cluster/utils/ClusterConfigureGenerator.java
index 10e109b..c5f71c3 100644
--- 
a/cluster/src/test/java/org/apache/iotdb/cluster/utils/ClusterConfigureGenerator.java
+++ 
b/cluster/src/test/java/org/apache/iotdb/cluster/utils/ClusterConfigureGenerator.java
@@ -36,9 +36,6 @@ public class ClusterConfigureGenerator {
   private static Map<String, String> configMap = new HashMap<String, String>() 
{
     {
       put("port", config.getPort() + "");
-      put("raft_log_path", config.getRaftLogPath() + "");
-      put("raft_snapshot_path", config.getRaftSnapshotPath() + "");
-      put("raft_metadata_path", config.getRaftMetadataPath() + "");
       put("election_timeout_ms", config.getElectionTimeoutMs() + "");
       put("max_catch_up_log_num", config.getMaxCatchUpLogNum() + "");
       put("delay_snapshot", config.isDelaySnapshot() + "");
diff --git 
a/cluster/src/test/java/org/apache/iotdb/cluster/utils/hash/RouterTest.java 
b/cluster/src/test/java/org/apache/iotdb/cluster/utils/hash/RouterTest.java
index cce8b61..6a94abb 100644
--- a/cluster/src/test/java/org/apache/iotdb/cluster/utils/hash/RouterTest.java
+++ b/cluster/src/test/java/org/apache/iotdb/cluster/utils/hash/RouterTest.java
@@ -22,7 +22,6 @@ import static org.junit.Assert.*;
 
 import org.apache.iotdb.cluster.config.ClusterConfig;
 import org.apache.iotdb.cluster.config.ClusterDescriptor;
-import org.apache.iotdb.db.utils.EnvironmentUtils;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -38,7 +37,6 @@ public class RouterTest {
 
   @Before
   public void setUp() throws Exception {
-    EnvironmentUtils.envSetUp();
     ipListOld = config.getNodes();
     replicatorOld = config.getReplication();
     numOfVirtulaNodesOld = config.getNumOfVirtualNodes();
@@ -49,7 +47,6 @@ public class RouterTest {
     config.setNodes(ipListOld);
     config.setReplication(replicatorOld);
     config.setNumOfVirtualNodes(numOfVirtulaNodesOld);
-    EnvironmentUtils.cleanEnv();
   }
 
   @Test

Reply via email to