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 2020/03/31 08:14:35 UTC

[incubator-iotdb] branch iotdb-572 created (now 59c754f)

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

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


      at 59c754f  skip Chinese Tests if the server does not support Chinese

This branch includes the following new commits:

     new 59c754f  skip Chinese Tests if the server does not support Chinese

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: skip Chinese Tests if the server does not support Chinese

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

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

commit 59c754f8e7678576cace82a6efa7df81f97f6d72
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Tue Mar 31 16:14:11 2020 +0800

    skip Chinese Tests if the server does not support Chinese
---
 session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java b/session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java
index e5bec59..16affac 100644
--- a/session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java
+++ b/session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java
@@ -51,8 +51,11 @@ import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public class IoTDBSessionIT {
+  private static Logger logger = LoggerFactory.getLogger(IoTDBSessionIT.class);
 
   private Session session;
 
@@ -223,6 +226,10 @@ public class IoTDBSessionIT {
 
   @Test
   public void testChineseCharacter() throws IoTDBConnectionException, StatementExecutionException {
+    if (!System.getProperty("sun.jnu.encoding").contains("UTF-8")) {
+      logger.error("The system does not support UTF-8, so skip Chinese test...");
+      return;
+    }
     session = new Session("127.0.0.1", 6667, "root", "root");
     session.open();
     String storageGroup = "root.存储组1";