test: modify testcases of muti-mnodes

This commit is contained in:
tomchon 2022-07-22 10:39:45 +08:00
parent 32d2740107
commit 44fd2cb354
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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