提交 44fd2cb3 编写于 作者: haoranc's avatar haoranc

test: modify testcases of muti-mnodes

上级 32d27401
...@@ -159,8 +159,8 @@ class TDTestCase: ...@@ -159,8 +159,8 @@ class TDTestCase:
for tr in threads: for tr in threads:
tr.join() tr.join()
clusterComCheck.checkDnodes(dnodeNumbers) clusterComCheck.checkDnodes(dnodeNumbers)
tdSql.query("show databases") # tdSql.query("show databases")
tdLog.debug("we find %d databases but exepect to create %d databases "%(tdSql.queryRows-2,allDbNumbers)) # tdLog.debug("we find %d databases but exepect to create %d databases "%(tdSql.queryRows-2,allDbNumbers))
# tdLog.info("check DB Rows:") # tdLog.info("check DB Rows:")
clusterComCheck.checkDbRows(allDbNumbers) clusterComCheck.checkDbRows(allDbNumbers)
......
...@@ -63,6 +63,7 @@ class ClusterComCheck: ...@@ -63,6 +63,7 @@ class ClusterComCheck:
count=0 count=0
while count < 5: while count < 5:
tdSql.query("show databases;") tdSql.query("show databases;")
count+=1
if tdSql.checkRows(dbNumbers+2): if tdSql.checkRows(dbNumbers+2):
tdLog.success("we find %d databases and expect %d in clusters! " %(tdSql.queryRows,dbNumbers+2)) tdLog.success("we find %d databases and expect %d in clusters! " %(tdSql.queryRows,dbNumbers+2))
return True return True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册