提交 96c87a07 编写于 作者: X xiangdong huang

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

上级 acb850de
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册