You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2022/12/14 00:33:01 UTC

[iotdb] branch master updated: [IOTDB-5200] Fix IT in IoTDBOrderByWithAlignByDeviceIT

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

jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 2de2096956 [IOTDB-5200] Fix IT in IoTDBOrderByWithAlignByDeviceIT
2de2096956 is described below

commit 2de209695606d0b2c2d9b059a67547b92c6030da
Author: YangCaiyin <yc...@gmail.com>
AuthorDate: Wed Dec 14 08:32:55 2022 +0800

    [IOTDB-5200] Fix IT in IoTDBOrderByWithAlignByDeviceIT
---
 .../it/alignbydevice/IoTDBOrderByWithAlignByDeviceIT.java  | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/alignbydevice/IoTDBOrderByWithAlignByDeviceIT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/alignbydevice/IoTDBOrderByWithAlignByDeviceIT.java
index dce4c76c66..b777de6fb7 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/alignbydevice/IoTDBOrderByWithAlignByDeviceIT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/alignbydevice/IoTDBOrderByWithAlignByDeviceIT.java
@@ -1194,12 +1194,12 @@ public class IoTDBOrderByWithAlignByDeviceIT {
 
   String[] res =
       new String[] {
-        "v1,true,null",
-        "v2,false,null",
-        "null,true,25.96",
         "v2,true,null",
         "null,true,24.36",
-        "v2,true,null"
+        "v2,true,null",
+        "null,true,25.96",
+        "v2,false,null",
+        "v1,true,null"
       };
 
   @Test
@@ -1224,10 +1224,10 @@ public class IoTDBOrderByWithAlignByDeviceIT {
           lastDevice = actualDevice;
           lastTimeStamp = actualTimeStamp;
           String actualHardware = resultSet.getString(3);
-          boolean actualStatus = resultSet.getBoolean(4);
-          double actualTemperature = resultSet.getDouble(5);
+          String actualStatus = resultSet.getString(4);
+          String actualTemperature = resultSet.getString(5);
           String stringBuilder = actualHardware + "," + actualStatus + "," + actualTemperature;
-          assertEquals(stringBuilder, res[i]);
+          assertEquals(res[i], stringBuilder);
           i++;
         }
         assertEquals(i, 6);