From 913b406555bac5b6b224da3a78d6f7bfe307c2cb Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Thu, 27 Oct 2022 19:46:10 +0800 Subject: [PATCH] update test case --- tests/system-test/2-query/last.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system-test/2-query/last.py b/tests/system-test/2-query/last.py index 036a6d78ec..ac1b679181 100644 --- a/tests/system-test/2-query/last.py +++ b/tests/system-test/2-query/last.py @@ -261,7 +261,7 @@ class TDTestCase: vgroup_num = 10 buffer_size = 3 tables = 100 - rows = 12 + rows = 50 str = self.generateString(1024) column_dict = { 'c1': 'int', @@ -280,10 +280,10 @@ class TDTestCase: tdSql.execute(create_ntb_sql) for i in range(tables): - sql = f"create table sub_tb{i} using {stbname} tags({i})" + sql = f"create table {dbname}.sub_tb{i} using {stbname} tags({i})" tdSql.execute(sql) for j in range(rows): - tdSql.execute(f"insert into sub_tb{i} values(%d, %d, '%s', '%s')" % (self.ts + j, i, str, str)) + tdSql.execute(f"insert into {dbname}.sub_tb{i} values(%d, %d, '%s', '%s')" % (self.ts + j, i, str, str)) tdSql.query(f"select * from {stbname}") tdSql.checkRows(tables * rows) -- GitLab