From 149eeecd76d1d25f5b20afbba8816137a8def26f Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 17 May 2024 00:37:16 +0800 Subject: [PATCH] fix(test): update test case. --- source/client/test/clientTests.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/client/test/clientTests.cpp b/source/client/test/clientTests.cpp index 449e44eb13..d7c1cbb3d9 100644 --- a/source/client/test/clientTests.cpp +++ b/source/client/test/clientTests.cpp @@ -907,7 +907,7 @@ TEST(clientCase, projection_query_stables) { TAOS_RES* pRes = taos_query(pConn, "use qzdata"); taos_free_result(pRes); - pRes = taos_query(pConn, "select * from `X212MGPH018`"); + pRes = taos_query(pConn, "select * from `QZ_212_DYS_02`"); if (taos_errno(pRes) != 0) { printf("failed to select from table, reason:%s\n", taos_errstr(pRes)); taos_free_result(pRes); @@ -920,6 +920,8 @@ TEST(clientCase, projection_query_stables) { int32_t numOfRows = 0; int32_t i = 0; + int32_t prev = 0; + char str[512] = {0}; while (1) { int32_t c = taos_fetch_block_s(pRes, &numOfRows, &pRow); @@ -927,7 +929,12 @@ TEST(clientCase, projection_query_stables) { break; } i += numOfRows; - printf("%d\n", i); + + if ( (i / 1000000) > prev) { + printf("%d\n", i); + prev = i; + } + //printf("%d\n", i); } // while ((pRow = taos_fetch_row(pRes)) != NULL) { // int32_t code = taos_print_row(str, pRow, pFields, numOfFields);