From 5fe7882abec69ed5ed3eaa0d78e5f59ba4aabf55 Mon Sep 17 00:00:00 2001 From: cpwu Date: Sun, 24 Apr 2022 15:04:12 +0800 Subject: [PATCH] fix case --- tests/system-test/2-query/sum.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/system-test/2-query/sum.py b/tests/system-test/2-query/sum.py index 90435f8b86..eaa94af3e6 100644 --- a/tests/system-test/2-query/sum.py +++ b/tests/system-test/2-query/sum.py @@ -59,9 +59,11 @@ class TDTestCase: tdSql.query(f"select {condition} from {tbname} {where_condition} {group_condition} ") datas = [tdSql.getData(i,0) for i in range(tdSql.queryRows)] sum_data = sum(datas) - tdSql.query(f"select sum( {condition} ) from {tbname} {where_condition} {group_condition}") + tdSql.query(f"select sum( {condition} ) from {tbname} {where_condition} ") tdSql.checkData(0, 0, sum_data) + tdSql.query(f"select {condition} from {tbname} {where_condition} {group_condition} ") + def __sum_err_check(self,tbanme): sqls = [] @@ -199,7 +201,7 @@ class TDTestCase: self.__create_tb() tdLog.printNoPrefix("==========step2:insert data") - self.__insert_data(1000) + self.__insert_data(100) tdLog.printNoPrefix("==========step3:all check") self.all_test() -- GitLab