提交 ad78407e 编写于 作者: W wenzhouwww

test: modify test case

上级 a186cc44
......@@ -135,12 +135,21 @@ class TDTestCase:
if rows != len(topicNameList):
tdLog.exit("show consumers rows error")
for i in range(0, 10, 1):
tdLog.info("check show subscriptions")
tdSql.query("show subscriptions")
tdLog.debug(tdSql.queryResult)
rows = tdSql.getRows()
expectSubscriptions = paraDict['vgroups'] * len(topicNameList)
tdLog.info("show subscriptions rows: %d, expect Subscriptions: %d"%(rows,expectSubscriptions))
if rows != expectSubscriptions:
# tdLog.exit("show subscriptions rows error")
tdLog.info("continue retry[%d] to show subscriptions"%(i))
time.sleep(1)
continue
else:
break
if rows != expectSubscriptions:
tdLog.exit("show subscriptions rows error")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册