提交 2acf94be 编写于 作者: G Ganlin Zhao

fix test cases

上级 30979b96
......@@ -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:
......
......@@ -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()
......
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册