提交 30979b96 编写于 作者: G Ganlin Zhao

fix test cases

上级 364150a5
......@@ -68,14 +68,15 @@ class TDTestCase:
# TD-6006
tdSql.error("select * from dev_001 where 'name' is not null")
tdSql.error("select * from dev_001 where \"name\" = 'first'")
# TS-1577
time.sleep(1)
tdSql.query("show databases")
rows = tdSql.queryRows
for i in range(1000):
tdSql.execute("create database test%d" % i)
tdSql.query("show databases")
tdSql.checkRows(rows + 1000)
......
......@@ -1316,7 +1316,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:
......
......@@ -807,7 +807,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:
......
......@@ -2305,7 +2305,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.
先完成此消息的编辑!
想要评论请 注册