Skip to content

Commit 527045f

Browse files
committed
change concurrent thread number for testConcurrentCteQueries
1 parent 0ecf519 commit 527045f

File tree

1 file changed

+2
-2
lines changed
  • integration-test/src/test/java/org/apache/iotdb/relational/it/query/recent

1 file changed

+2
-2
lines changed

integration-test/src/test/java/org/apache/iotdb/relational/it/query/recent/IoTDBCteIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ public void testPrivileges() throws SQLException {
470470

471471
@Test
472472
public void testConcurrentCteQueries() throws Exception {
473-
final int threadCount = 10;
473+
final int threadCount = 3;
474474
final int queriesPerThread = 20;
475475
final AtomicInteger successCount = new AtomicInteger(0);
476476
final AtomicInteger failureCount = new AtomicInteger(0);
@@ -582,7 +582,7 @@ public void testConcurrentCteQueries() throws Exception {
582582
int totalQueries = threadCount * queriesPerThread;
583583
assertEquals("All queries should succeed", totalQueries, successCount.get());
584584
assertEquals("No queries should fail", 0, failureCount.get());
585-
assertEquals("Total query count should match", 340, totalCount.get());
585+
assertEquals("Total query count should match", 102, totalCount.get());
586586
}
587587

588588
private static void prepareData() {

0 commit comments

Comments
 (0)