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:22:38 UTC

[incubator-iotdb] branch remove_system_exit created (now 96c87a0)

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

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


      at 96c87a0  remove system.exit() on Test for better checking the problem when running test

This branch includes the following new commits:

     new 96c87a0  remove system.exit() on Test for better checking the problem when running test

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by hx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

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);