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

CRZbulabula 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 ba287a9cb41 Fix SHOW DEVICES limit offset test ordering (#18745)
ba287a9cb41 is described below

commit ba287a9cb410ef9b41bd3be6134b39184f05e7df
Author: Yongzao <[email protected]>
AuthorDate: Mon Sep 28 22:09:37 2026 +0800

    Fix SHOW DEVICES limit offset test ordering (#18745)
---
 .../test/java/org/apache/iotdb/db/it/IoTDBSimpleQueryIT.java | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git 
a/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSimpleQueryIT.java 
b/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSimpleQueryIT.java
index a9b0fbea52d..677128d0bd8 100644
--- 
a/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSimpleQueryIT.java
+++ 
b/integration-test/src/test/java/org/apache/iotdb/db/it/IoTDBSimpleQueryIT.java
@@ -1020,7 +1020,13 @@ public class IoTDBSimpleQueryIT {
     try (Connection connection = EnvFactory.getEnv().getConnection();
         Statement statement = connection.createStatement()) {
       try {
-        List<String> exps = Arrays.asList("root.sg1.d1,false", 
"root.sg1.d2,false");
+        List<String> exps =
+            new ArrayList<>(
+                Arrays.asList(
+                    "root.sg1.d0,false",
+                    "root.sg1.d1,false",
+                    "root.sg1.d2,false",
+                    "root.sg1.d3,false"));
 
         statement.execute("INSERT INTO root.sg1.d0(timestamp, s1) VALUES (5, 
5)");
         statement.execute("INSERT INTO root.sg1.d1(timestamp, s2) VALUES (5, 
5)");
@@ -1030,8 +1036,8 @@ public class IoTDBSimpleQueryIT {
         int count = 0;
         try (ResultSet resultSet = statement.executeQuery("show devices limit 
2 offset 1")) {
           while (resultSet.next()) {
-            Assert.assertEquals(
-                exps.get(count), resultSet.getString(1) + "," + 
resultSet.getString(2));
+            String device = resultSet.getString(1) + "," + 
resultSet.getString(2);
+            Assert.assertTrue(device, exps.remove(device));
             ++count;
           }
         }

Reply via email to