未验证 提交 ba826f20 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #3520 from taosdata/xiaoping/add_test_case

fix test failures
......@@ -33,7 +33,7 @@ class TDTestCase:
tdDnodes.start(1)
tdSql.execute('reset query cache')
tdSql.execute('drop database if exists db')
tdSql.execute('create database db cache 128 maxtables 10')
tdSql.execute('create database db cache 128')
tdSql.execute('use db')
tdLog.info("================= step1")
......
......@@ -38,7 +38,7 @@ class TDTestCase:
tdLog.info("drop database db if exits")
tdSql.execute('drop database if exists db')
tdLog.info("================= step1")
tdSql.execute('create database db maxtables 4')
tdSql.execute('create database db')
tdLog.sleep(5)
tdSql.execute('use db')
......
......@@ -38,7 +38,7 @@ class TDTestCase:
tdLog.info("drop database db if exits")
tdSql.execute('drop database if exists db')
tdLog.info("================= step1")
tdSql.execute('create database db maxtables 4')
tdSql.execute('create database db')
tdLog.sleep(5)
tdSql.execute('use db')
......
......@@ -123,8 +123,12 @@ class TDSql:
def checkData(self, row, col, data):
self.checkRowCol(row, col)
if str(self.queryResult[row][col]) != str(data):
if isinstance(data, float) and abs(self.queryResult[row][col] - data) <= 0.000001:
if self.queryResult[row][col] != data:
if str(self.queryResult[row][col]) != str(data):
tdLog.info("sql:%s, row:%d col:%d data:%s == expect:%s" %
(self.sql, row, col, self.queryResult[row][col], data))
return
elif isinstance(data, float) and abs(self.queryResult[row][col] - data) <= 0.000001:
tdLog.info("sql:%s, row:%d col:%d data:%f == expect:%f" %
(self.sql, row, col, self.queryResult[row][col], data))
return
......
......@@ -130,7 +130,6 @@ run general/parser/join.sim
run general/parser/join_multivnode.sim
run general/parser/select_with_tags.sim
run general/parser/groupby.sim
run general/parser/bug.sim
run general/parser/tags_dynamically_specifiy.sim
run general/parser/set_tag_vals.sim
#unsupport run general/parser/repeatAlter.sim
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册