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 <[email protected]>
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);

Reply via email to