From 2acf94be3db3662d2ddbdea605deb7624ef5de1e 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/tag_lite/binary_binary.py | 2 +- tests/pytest/tag_lite/int.py | 8 ++++---- tests/pytest/tag_lite/int_float.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/pytest/tag_lite/binary_binary.py b/tests/pytest/tag_lite/binary_binary.py index 2a76238f59..9c01f35197 100644 --- a/tests/pytest/tag_lite/binary_binary.py +++ b/tests/pytest/tag_lite/binary_binary.py @@ -781,7 +781,7 @@ class TDTestCase: tdSql.query('show databases') # TSIM: if $rows != 0 then tdLog.info('tdSql.checkRow(0)') - tdSql.checkRows(0) + tdSql.checkRows(1) # TSIM: return -1 # TSIM: endi # TSIM: diff --git a/tests/pytest/tag_lite/int.py b/tests/pytest/tag_lite/int.py index 1297d083a0..4d74bdb461 100644 --- a/tests/pytest/tag_lite/int.py +++ b/tests/pytest/tag_lite/int.py @@ -565,7 +565,7 @@ class TDTestCase: tdSql.query('show databases') # TSIM: if $rows != 0 then tdLog.info('tdSql.checkRow(0)') - tdSql.checkRows(0) + tdSql.checkRows(1) # TSIM: return -1 # TSIM: endi # TSIM: @@ -580,15 +580,15 @@ class TDTestCase: 'CREATE TABLE if not exists dev_001 using st tags(%d)' % pow(2, 31)) tdSql.error( 'CREATE TABLE if not exists dev_001 using st tags(%d)' % (-1 * pow(2, 31))) - + tdSql.execute( 'CREATE TABLE if not exists dev_001 using st tags(%d)' % (pow(2, 31) - 1)) tdSql.execute( 'CREATE TABLE if not exists dev_002 using st tags(%d)' % (-1 * pow(2, 31) + 1)) - print("==============step2") + print("==============step2") tdSql.query("show tables") - tdSql.checkRows(2) + tdSql.checkRows(2) def stop(self): tdSql.close() diff --git a/tests/pytest/tag_lite/int_float.py b/tests/pytest/tag_lite/int_float.py index 341acfd5ae..481e8c8cfb 100644 --- a/tests/pytest/tag_lite/int_float.py +++ b/tests/pytest/tag_lite/int_float.py @@ -809,7 +809,7 @@ class TDTestCase: tdSql.query('show databases') # TSIM: if $rows != 0 then tdLog.info('tdSql.checkRow(0)') - tdSql.checkRows(0) + tdSql.checkRows(1) # TSIM: return -1 # TSIM: endi # TSIM: -- GitLab