You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/11/16 10:04:22 UTC

[iotdb] 02/02: fix tests

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

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

commit e7d0aa18ee5758f59fb8e252364a022b4c440269
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed Nov 16 18:03:51 2022 +0800

    fix tests
---
 .../src/test/java/org/apache/iotdb/db/it/IoTDBTtlIT.java            | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBTtlIT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBTtlIT.java
index 3cd84d6c4c..62116eea51 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBTtlIT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBTtlIT.java
@@ -133,7 +133,7 @@ public class IoTDBTtlIT {
               String.format(
                   "INSERT INTO root.TTL_SG1(timestamp, s1) VALUES (%d, %d)", now - 500000 + i, i));
         } catch (SQLException e) {
-          assertEquals(400, e.getErrorCode());
+          assertEquals(305, e.getErrorCode());
         }
       }
 
@@ -221,7 +221,7 @@ public class IoTDBTtlIT {
                   "INSERT INTO root.sg.TTL_SG3(timestamp, s1) VALUES (%d, %d)",
                   now - 5000000 + i, i));
         } catch (SQLException e) {
-          assertEquals(400, e.getErrorCode());
+          assertEquals(305, e.getErrorCode());
         }
       }
       for (int i = 100; i < 200; i++) {
@@ -232,7 +232,7 @@ public class IoTDBTtlIT {
                   "INSERT INTO root.sg.TTL_SG4(timestamp, s1) VALUES (%d, %d)",
                   now - 5000000 + i, i));
         } catch (SQLException e) {
-          assertEquals(400, e.getErrorCode());
+          assertEquals(305, e.getErrorCode());
         }
       }