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

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


The following commit(s) were added to refs/heads/delete_dev4 by this push:
     new ab37da7  fix IoTDBDeletetionIT
ab37da7 is described below

commit ab37da7f37fd90b197d1204ec470ebb74391b724
Author: jt <[email protected]>
AuthorDate: Sun Feb 17 10:28:28 2019 +0800

    fix IoTDBDeletetionIT
---
 .../apache/iotdb/db/integration/IoTDBDeletionIT.java   | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git 
a/iotdb/src/test/java/org/apache/iotdb/db/integration/IoTDBDeletionIT.java 
b/iotdb/src/test/java/org/apache/iotdb/db/integration/IoTDBDeletionIT.java
index bc0ac4e..a94bff6 100644
--- a/iotdb/src/test/java/org/apache/iotdb/db/integration/IoTDBDeletionIT.java
+++ b/iotdb/src/test/java/org/apache/iotdb/db/integration/IoTDBDeletionIT.java
@@ -20,21 +20,20 @@
 
 package org.apache.iotdb.db.integration;
 
+import static org.junit.Assert.assertEquals;
+
 import java.sql.Connection;
 import java.sql.DriverManager;
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.sql.Statement;
-
 import org.apache.iotdb.db.service.IoTDB;
 import org.apache.iotdb.db.utils.EnvironmentUtils;
 import org.apache.iotdb.jdbc.Config;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
+import org.junit.After;
+import org.junit.Before;
 import org.junit.Test;
 
-import static org.junit.Assert.assertEquals;
-
 public class IoTDBDeletionIT {
   private static IoTDB daemon;
 
@@ -53,8 +52,8 @@ public class IoTDBDeletionIT {
   private String deleteAllTemplate = "DELETE FROM root.vehicle.d0 WHERE time 
<= 10000";
 
 
-  @BeforeClass
-  public static void setUp() throws Exception {
+  @Before
+  public void setUp() throws Exception {
     EnvironmentUtils.closeStatMonitor();
     EnvironmentUtils.closeMemControl();
     daemon = IoTDB.getInstance();
@@ -64,10 +63,9 @@ public class IoTDBDeletionIT {
     prepareSeries();
   }
 
-  @AfterClass
-  public static void tearDown() throws Exception {
+  @After
+  public void tearDown() throws Exception {
     daemon.stop();
-    Thread.sleep(5000);
 
     EnvironmentUtils.cleanEnv();
   }

Reply via email to