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 2019/04/06 14:25:16 UTC

[incubator-iotdb] branch refactor_bufferwrite updated: remove system.exit() on Test for better checking the problem when running test

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

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


The following commit(s) were added to refs/heads/refactor_bufferwrite by this push:
     new 96c87a0  remove system.exit() on Test for better checking the problem when running test
     new 50a3b6a  Merge remote-tracking branch 'origin/remove_system_exit' into refactor_bufferwrite
96c87a0 is described below

commit 96c87a079751d3be2c64374f3209198645488df5
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Sat Apr 6 22:22:20 2019 +0800

    remove system.exit() on Test for better checking the problem when running test
---
 iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java b/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
index d4d9c63..9915699 100644
--- a/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
+++ b/iotdb/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
@@ -40,6 +40,7 @@ import org.apache.iotdb.db.query.control.QueryResourceManager;
 import org.apache.iotdb.db.writelog.manager.MultiFileLogNodeManager;
 import org.apache.iotdb.tsfile.common.conf.TSFileConfig;
 import org.apache.iotdb.tsfile.common.conf.TSFileDescriptor;
+import org.junit.Assert;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -74,7 +75,7 @@ public class EnvironmentUtils {
     try {
       if (!FileNodeManager.getInstance().deleteAll()) {
         LOGGER.error("Can't close the filenode manager in EnvironmentUtils");
-        System.exit(1);
+        Assert.fail();
       }
     } catch (FileNodeManagerException e) {
       throw new IOException(e);