From 573edaa7a170a94f76b4f671cb733f7cf270ae8b Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Mon, 31 Oct 2022 13:14:04 +0800 Subject: [PATCH] fix test cases --- tests/pytest/alter/alter_keep.py | 4 ++-- tests/pytest/table/column_num.py | 4 ++-- tests/pytest/tag_lite/column.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/pytest/alter/alter_keep.py b/tests/pytest/alter/alter_keep.py index b23f364fc6..2b38f4b2aa 100644 --- a/tests/pytest/alter/alter_keep.py +++ b/tests/pytest/alter/alter_keep.py @@ -22,7 +22,7 @@ class TDTestCase: def init(self, conn, logSql): tdLog.debug("start to execute %s" % __file__) tdSql.init(conn.cursor(), logSql) - + def alterKeepCommunity(self): tdLog.notice('running Keep Test, Community Version') tdLog.notice('running parameter test for keep during create') @@ -174,7 +174,7 @@ class TDTestCase: tdSql.error('insert into tb values (now-15d, 10)') tdSql.query('select * from tb') tdSql.checkRows(2) - + rowNum = 2 tdLog.notice('testing keep will be altered if sudden change from small to big') for i in range(30): diff --git a/tests/pytest/table/column_num.py b/tests/pytest/table/column_num.py index 3abedb083c..edfa26fdad 100644 --- a/tests/pytest/table/column_num.py +++ b/tests/pytest/table/column_num.py @@ -108,8 +108,8 @@ class TDTestCase: tdLog.info('show databases') tdSql.query('show databases') # TSIM: if $rows != 0 then - tdLog.info('tdSql.checkRow(0)') - tdSql.checkRows(0) + tdLog.info('tdSql.checkRow(1)') + tdSql.checkRows(1) # TSIM: return -1 # TSIM: endi # convert end diff --git a/tests/pytest/tag_lite/column.py b/tests/pytest/tag_lite/column.py index 3326bc547c..f82f83c356 100644 --- a/tests/pytest/tag_lite/column.py +++ b/tests/pytest/tag_lite/column.py @@ -180,8 +180,8 @@ class TDTestCase: tdLog.info('show databases') tdSql.query('show databases') # TSIM: if $rows != 0 then - tdLog.info('tdSql.checkRow(1)') - tdSql.checkRows(1) + tdLog.info('tdSql.checkRow(0)') + tdSql.checkRows(0) # TSIM: return -1 # TSIM: endi # TSIM: -- GitLab